arrow function syntax simplified

Allen Wirfs-Brock allen at wirfs-brock.com
Wed Mar 28 09:07:03 PDT 2012


On Mar 28, 2012, at 8:26 AM, Axel Rauschmayer wrote:

>> On the other hand, failing to bind 'this' is something that I believe every single JS developer hits routinely. It has cost them time to recognize and recover. The net advantage of a better bind mechanism still depends upon many issues, but this problem has much bigger impact that eight vs two characters.
> 
> +1
> 
> And things should be brain-dead simple. That’s what I liked about block lambdas: No need to understand what bound/lexical `this` actually is, things just worked. With two arrows where each one has different rules (e.g. regarding the body), things are becoming much more complicated. 

also, +1

we need either fat arrow or block lambda based TCP preserving functions.  We don't need thin arrow and we really don't need the confusion it would create.

Allen




> 
> -- 
> 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/20120328/fd978b1d/attachment-0001.html>


More information about the es-discuss mailing list