Re: ArrayClass should imply @@isConcatSpreadable

On Oct 28, 2013, at 5:52 PM, Domenic Denicola wrote:

> From: Allen Wirfs-Brock [mailto:allen@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.  

Allen

Received on Tuesday, 29 October 2013 01:04:41 UTC