Automatically binding extracted methods
brendan at mozilla.com
Fri Jun 14 19:17:31 PDT 2013
To answer Brian's question, yes: already discussed an in strawman space
on the wiki, awaiting promotion to harmony, maybe for ES7:
Rick Waldron wrote:
> On Fri, Jun 14, 2013 at 4:26 PM, Brian Di Palma <offler at gmail.com
> <mailto:offler at gmail.com>> wrote:
> I suppose a special binding operator has already been discussed
> and discarded?
> const functionBoundToclassInstance = classInstance->methodName
> A thin arrow here will be confusing in the fat-arrow
> ES6-world-of-tomorrow; additionally, I'd like to any loose reservation
> a thin-arrow function that does not do lexical |this| binding as
> fat-arrow does.
More information about the es-discuss