ES4 draft: array initializer expressions

Waldemar Horwat waldemar at
Tue Apr 15 17:08:16 PDT 2008

My comments:

The grammar is ambiguous.

var [x, y] = expr;

is both an assignment expression statement and a destructuring variable binding statement.

How does the "length" property work for structural type literals?  Is it always a fixture?

> If the array initializer is prefixed by |const| or |var| then the array 
> properties created will be created as fixtures; if the prefix is |const| 
> those fixtures will additionally be read-only.

Am I to read this as stating that the length is also a constant if "const" is used?  It's a bit unclear.


More information about the Es4-discuss mailing list