[MacRuby-devel] ->(){} lambda syntax support

Laurent Sansonetti lsansonetti at apple.com
Tue Jan 11 11:59:08 PST 2011


Hi Caio,

I think it's a macirb problem, and that it should work fine outside of it.

Can you confirm? Yes, a ticket would be appreciated :)

Laurent

On Jan 11, 2011, at 10:10 AM, Caio Chassot wrote:

> Hey all,
> 
> It appears the  ->{} syntax for lambdas is not supported.
> 
> Known? Need ticket?
> 
>    $ irb
>    irb(main):001:0> ->{}
>    => #<Proc:0x0000010124c5c8@(irb):1 (lambda)>
> 
>    $ macirb
>    irb(main):001:0> ->{}
>    SyntaxError: compile error
> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110111/16d66fbc/attachment.html>


More information about the MacRuby-devel mailing list