iteration order for Object

Charles Kendrick charles at
Thu Mar 10 18:50:05 PST 2011

Thanks for the link Brendan.

This strawman continues to treat numeric indices specially on Object.

Let's ignore, for the moment, the fact that the underlying implementation of Object and Array 
is very similar.

Has a use case been identified where treating numeric properties differently from other 
properties is a desirable behavior?

Is there any programming language or library for any programming language where this behavior 
has been intentionally implemented as a collection class?

In my limited experience both are "no".

Harmony is a clean break: seems like a great opportunity to implement the behavior for Object iteration that is most useful.

On 3/10/2011 5:02 PM, Brendan Eich wrote:
> Please see
> /be

More information about the es-discuss mailing list