arrows and a proposed softCall

Anton Kovalyov ml at
Mon Jun 4 15:56:03 PDT 2012

On Monday, June 4, 2012 at 3:10 PM, Yehuda Katz wrote:
> It's too late for jQuery to fix the order now. However, in the face of arrows or bound functions, we probably could detect a user intent to use `this` for their own purposes and use that as a signal to change the order.

If I read the code correctly, it means that the same method will have different signatures depending on the function form: $("*").each(function (i, item) { … }); vs. $("*").each((item, i) => { … })  

If so, I think it will be _very_ confusing.


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

More information about the es-discuss mailing list