Scoped binding of a method to an object

Rick Waldron waldron.rick at gmail.com
Sun Oct 13 15:52:30 PDT 2013


On Sunday, October 13, 2013, Brendan Eich wrote:

> Till Schneidereit wrote:
>
>> OnSun, Oct 13, 2013  at 11:50 PM,  Domenic Denicola
>> <domenic at domenicdenicola.com>  wrote:
>>
>>> >  From: es-discuss [mailto:es-discuss-bounces at mozilla.org] On Behalf
>>> Of Benjamin (Inglor) Gruenbaum
>>> >
>>>
>>>> >>  not to mention stuff like `.map` or `.reduce` would still return an
>>>> Array which would result in more endless wrapping.
>>>>
>>> >
>>> >  This is actually not true as of ES6; ES6 uses `this.constructor` to
>>> figure out how to create the returned instance, which means inherited
>>> versions of `map`/`reduce`/etc. will automatically return new `XArray`s.
>>> >
>>> >  It's quite a clever trick IMO, so we should all thank Allen for
>>> pushing for it and doing the spec work to make it possible:)
>>>
>>
>> Here's to hoping that it'll actually work in practice and not break
>> too many sites.
>>
>
> Yes, we are not nearly out of the woods on this one.
>
> In fact, at the September TC39 meeting, did we not agree that more work
> was needed, and to go back to the lab? Allen (editor) and Rick (notes
> taker) know.


The work that remained was wrapped up in draft 19, published sept 27th.
Allen should confirm (as always)

Rick

>
> /be
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131013/ff4d8bb0/attachment-0001.html>


More information about the es-discuss mailing list