BTW, there's also some discussion on a bind operator at a ticket I opened on CoffeeScript's tracker, https://github.com/jashkenas/coffee-script/issues/2136 (slightly based on the syntax proposed on "Sugar for *.prototype and for calling methods as functions" < https://mail.mozilla.org/pipermail/es-discuss/2012-February/020699.html>) which might be related - tho the syntax itself is more CoffeeScript-y and probably less appropriate for ES6 (due to @ having a different meaning)
On Wed, Mar 28, 2012 at 10:15 PM, Nadav Shesek <na...@shesek.info> wrote: > > > On Wed, Mar 28, 2012 at 9:57 PM, Kevin Smith <khs4...@gmail.com> wrote: >> >> >> It seems that with bound |this| functions, the need to explicitly bind >> |this| tends to fall away. >> > > This is true for function literals that needs to be bound to the `this` > context in the scope where they're created, but not very helpful for > binding a function reference or for binding to objects other than `this`. > In my own code, the first case is quite common - mostly functions that's > defined ones and gets bound to multiple objects. That being said - the most > common case I encounter is the anonymous-function-bound-to-`this` scenario. > > > >> kevin >> >> >> _______________________________________________ >> es-discuss mailing list >> es-discuss@mozilla.org >> https://mail.mozilla.org/listinfo/es-discuss >> >> > > > -- > <me><name>Nadav Ivgi</name><profession>Software > Developer</profession><phone>+972-50-3650394</phone><blog> > http://www.shesek.info/</blog><timezone>GMT +2</timezone></me> > >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss