[racket] Optional parameters in Typed Racket?
Thanks Asumu
Looks like that was it ...
Dan
On Sat, Apr 26, 2014 at 11:02 PM, Asumu Takikawa <asumu at ccs.neu.edu> wrote:
> On 2014-04-26 16:59:39 +1000, Daniel Prager wrote:
> > #lang typed/racket
> >
> > (: append-bar (->* (String) (Positive-Integer) String))
> > (define (append-bar str [how-many 1])
> > (apply string-append str (make-list how-many "bar")))
> >
> > gives me this error in 6.0:
>
> The ->* syntax is new and will be included in the upcoming v6.0.1
> release, but it's not available in v6.0.
>
> Maybe you saw it in the pre-release docs?
>
> Cheers,
> Asumu
>
--
*Daniel Prager*
Agile/Lean Coaching, Software Development and Leadership
Startup: www.youpatch.com
Twitter: @agilejitsu <https://twitter.com/agilejitsu>
Blog: agile-jitsu.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140426/130dd864/attachment.html>