arrow function syntax simplified
Axel Rauschmayer
axel at rauschma.de
Tue Mar 27 13:37:51 PDT 2012
Looks good. Not sure if the different rules for the body aren’t confusing.
On Mar 27, 2012, at 21:43 , Brendan Eich wrote:
> http://wiki.ecmascript.org/doku.php?id=strawman:arrow_function_syntax
>
> Use => only with an expression body (do-expressions if accepted allow statements and combined with => compete with block-lambdas).
>
> Use -> only with body block, as for long-form function.
>
> I deferred other accretions.
>
> In a rush here, comments and corrections welcome and I'll edit as I can.
>
> /be
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
--
Dr. Axel Rauschmayer
axel at rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120327/88d8aeca/attachment.html>
More information about the es-discuss
mailing list