arrows and a proposed softCall

Anton Kovalyov ml at kovalyov.net
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.

Anton  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120604/3769dee1/attachment.html>


More information about the es-discuss mailing list