ES4 draft: Object
maian330 at gmail.com
Thu Mar 13 09:36:26 PDT 2008
Peter Hall wrote:
> > The latter. It is weird, I agree. But the enumerator can easily be
> > customized, so I want the default enumerator be as non-magical as
> > possible - and therefore, as simple as possible. In fact, I'm a bit
> > bothered that propertyIsEnumerable is a method of Object yet can be
> > rendered useless when changing the enumerator - along this line of
> > reasoning, one would think that such a specific method shouldn't be a
> > method of Object at all, but rather the enumerator itself.
> So how would you go about enumerating the properties of an arbitrary
> dynamic object, whose properties could be in namespaces?
I thought there was an iterator that would enumerate all properties
regardless of enumerability (including those in other namespaces), but
apparently not. There should be such an iterator though.
> > Yeah, I vaguely remember some discussion concerning multiple namespaces
> > per property a long time ago (maybe a year ago). It was rejected
> > probably due to complexity.
> Not being able to combine them effectively makes many of the initial
> proposal's use-cases useless, because two use-cases may arise
> simultaneously when integrating two codebases, and be irreparably
What "initial proposal" are you talking about?
More information about the Es4-discuss