what kind of problem is this fat arrow feature trying to solve ?

Aymeric Vitte vitteaymeric at gmail.com
Wed Oct 2 07:36:23 PDT 2013

Le 02/10/2013 10:37, Claude Pache a écrit :
> +1. The big win of arrow-functions, is that it prevents from using various ad-hoc kludges (`var that = this`, `[].some(..., this)`, etc), whose sole goal is to defeat some unwanted feature (proper `this` binding in callbacks). Not a killing-feature, but a nice addition that will help to reduce noise in code.

And for those that do not use any longer var that=this but .bind(this) 
the transition is easy: just remove .bind(this) and replace function by 
fat arrow, one of the most wanted feature for me.

Peersm : http://www.peersm.com
node-Tor : https://www.github.com/Ayms/node-Tor
GitHub : https://www.github.com/Ayms

More information about the es-discuss mailing list