Automatically binding extracted methods

Brendan Eich 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:

http://wiki.ecmascript.org/doku.php?id=strawman:bind_operator

/be

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.
>
>
> Rick
>


More information about the es-discuss mailing list