arrow function syntax simplified

Brendan Eich brendan at mozilla.org
Sun Apr 1 11:44:43 PDT 2012


Allen Wirfs-Brock wrote:
> Regardless, Python is also a retrofitted OO language where arguably 
> objects are even less central to the language than in JS.

Funny you write this, as Python is arguably more OO than JS even with 
its explicit self parameter for class-defined methods. Or perhaps Python 
is less functional because of lack of fully expressive lambda (GvR 
argued against on OO grounds, IIRC).

One thing you undersell: the ability in JS to borrow, share, and wrap 
methods. This is not a justification for the |this| confusion evident 
from user experience of JS, but it is something hard to do in more rigid 
languages.

/be


More information about the es-discuss mailing list