ArrayClass should imply @@isConcatSpreadable
allen at wirfs-brock.com
Mon Oct 28 18:04:06 PDT 2013
On Oct 28, 2013, at 5:52 PM, Domenic Denicola wrote:
> From: Allen Wirfs-Brock [mailto:allen at wirfs-brock.com]
>> So what's so onerous about returning a fresh array from the getter each time it was called.
> The fact that `api.property !== api.property`.
You mean people want to do identity checks of the value of the property? Why?
Sorry, for pushing too much on this, but issues like when to produce fresh objets, when its safe to share mutable object, and when there are object identity expectations are pretty fundamental issues when designing object based APIs.
More information about the es-discuss