arrow function syntax simplified

Rick Waldron waldron.rick at gmail.com
Tue Mar 27 14:03:02 PDT 2012


Yes, please. This looks and feels like the proposal from Dave Herman that I
supported (and enjoyed writing examples for) the most.

Very exciting to see this moving along and finding wider support.

Rick

On Tue, Mar 27, 2012 at 4:37 PM, Axel Rauschmayer <axel at rauschma.de> wrote:

> 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
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120327/c389e333/attachment.html>


More information about the es-discuss mailing list