iteration order for Object
charles at isomorphic.com
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
for..in iteration that is most useful.
On 3/10/2011 5:02 PM, Brendan Eich wrote:
> Please see http://wiki.ecmascript.org/doku.php?id=strawman:enumeration.
More information about the es-discuss