Bound instance-function vending (was RE: Arrow binding)

Brendan Eich brendan at mozilla.org
Mon Apr 23 11:44:11 PDT 2012


Allen Wirfs-Brock wrote:
> This seems like an important idiomhat may  become even more important in the context of ES6.  We probably need to encourage broader education about this idiom.  But it isn't clear that it needs special syntax or even what that might be.

Dave wrote

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

for this and it's a live strawman (albeit in conflict with guard syntax, 
or perhaps just reusing it outside of binding contexts). Agree it's not 
ready for ES6, of course.

/be


More information about the es-discuss mailing list