On May 29, 2012, at 9:00 PM, Russell Leggett wrote:

> On Tue, May 29, 2012 at 11:52 PM, John Tamplin <j...@google.com> wrote:
> On Tue, May 29, 2012 at 11:50 PM, Yehuda Katz <wyc...@gmail.com> wrote:
> I'm not sure if this makes sense, but something about breaking `call` and 
> `apply` doesn't sit right with me.
> 
> Why should an arrow function be treated any differently than an explicitly 
> bound function (ie, via bind)?
> 
> Hah, you beat me too it, I was typing in almost the exact same thing. And not 
> just bind, either - even the kind of workarounds people would use before bind 
> like 'var self = this' sorts of things. If someone writes code using the 
> arrow, what they want is to use the lexically scoped this - they want to use 
> 'this' just like any other reference captured by the closure.

+1

Dave

_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to