An array destructing specification choice

Erik Arvidsson erik.arvidsson at
Sat Nov 5 15:50:31 PDT 2011

On Sat, Nov 5, 2011 at 14:41, Brendan Eich <brendan at> wrote:
> 1. Should an array pattern always query 'length'?
> 2. If the answer to (1) is "no", then should ... in an array pattern query 'length'?
> On reflection and at this point in the thread, with your reply in mind, my prefs in order: [no, yes], [no, no]. In no case do I favor [yes]. I'm refutably matching [no, _] :-P.

If we don't do start index to length - 1 then we have to determine the
enumeration method. Is it?

A) own properties
B) all properties
C) object[iterator]() and ignore the items before start index

Maybe C is preposterous but just putting it out there for consistency.


More information about the es-discuss mailing list