arrow function syntax simplified
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.
> 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.
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.
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss