Instance bound class methods
Kevin Smith
zenparsing at gmail.com
Mon Jul 13 15:16:31 UTC 2015
> I am curious if https://github.com/zenparsing/es-function-bind would be
> related, since it would allow bound function calls to be made by using
> `obj::fn` while `obj.fn` would result in the unbound first class function.
>
Well, for that syntax proposal, it would be `::obj.fn`.
But see https://github.com/zenparsing/es-function-bind/issues/17 for some
interesting semantic issues around the object identity of such an extracted
method.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150713/449808c8/attachment.html>
More information about the es-discuss
mailing list