BTF Measurements

Kevin Smith khs4473 at
Tue Mar 13 08:33:51 PDT 2012

> This is good work, but I don't think every function that doesn’t use
> 'this' is a supporting use case for bound-this functions, though. Many
> functions are like this:
>    panels.each(function (p) { p.fadeIn(); });
> and that function would not benefit at all from being converted to a
> bound-this function.

Depending on syntax, it could be rewritten like this:

    panels.each(p => { p.fadeIn(); });

which would offer gains in brevity, even though lexical this is not used.
 I'm assuming that for all "non-method" function expressions, BTFs would be
preferred for this reason.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list