arrow function syntax simplified

Rick Waldron waldron.rick at gmail.com
Tue Mar 27 14:29:15 PDT 2012


[snip]

I think fully TCP- compliant do expressions are pure win, FTR.
>

I second this, of course, based solely on the experience I had writing up
these examples:

https://gist.github.com/2013909

https://github.com/rwldrn/popcorn-js/compare/tri-lambda

https://github.com/rwldrn/popcorn-js/blob/481338a3ab05ad3423c67b70df690bf19977f9bc/popcorn.js


Rick


>
> /be
>
> >
> > Luke
> >
> > -----Original Message-----
> > From: es-discuss-bounces at mozilla.org [mailto:
> es-discuss-bounces at mozilla.org] On Behalf Of Brendan Eich
> > Sent: Tuesday, March 27, 2012 12:44 PM
> > To: es-discuss
> > Subject: arrow function syntax simplified
> >
> > 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
> >
> >
> _______________________________________________
> 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/788b493f/attachment-0001.html>


More information about the es-discuss mailing list