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

Tab Atkins Jr. jackalmage at gmail.com
Tue Oct 1 15:47:27 PDT 2013


On Tue, Oct 1, 2013 at 3:43 PM, Andrea Giammarchi
<andrea.giammarchi at gmail.com> wrote:
>   4. what kind of problem is this fat arrow feature trying to solve exactly,
> if it cannot be used for classes, direct methods assignment, but only for
> some runtime event assignment instead of using bind and still being unable
> to remove that listener later on ?

I'm not sure what sort of JS you write, but anonymous functions that
don't need standard 'this' binding are used in *lots* of places, far
beyond just "runtime event assignment".  Have you never used
setTimeout, forEach, map/reduce/etc, and all the
callback/Promise-based features of DOM/etc?

~TJ


More information about the es-discuss mailing list