Negative indices for arrays

Dmitry A. Soshnikov dmitry.soshnikov at
Fri Nov 12 00:39:37 PST 2010

On 12.11.2010 1:21, Allen Wirfs-Brock wrote:
>> -----Original Message-----
>> From: Peter van der Zee [mailto:ecma at]
> ...
>> I guess I would like -n to map to length-n, but I'm not sure whether it's worth the
>> cost described above. After all, it's just sugar.
> Like Oliver also said.

Like everybody on this list understands _what_ it is.

>    This isn't just sugar, it is a deep semantic change to the interpretation of property names

As I see it:

1. if to consider only for arrays -- it's a minimal semantics changes 
and minimal backward compats.
2. if to make it generic, we need another syntax.

What do you suggest?


More information about the es-discuss mailing list