Standard @iter module unfriendly to collection builders

Brendan Eich brendan at
Tue Nov 15 14:40:03 PST 2011

On Nov 15, 2011, at 1:42 PM, Jason Orendorff wrote:

> On Sun, Nov 13, 2011 at 12:17 PM, Erik Arvidsson
> <erik.arvidsson at> wrote:
>> Another thing to consider is whether these functions belong in an iter
>> module or in a reflect module? I'm leaning towards the letter.
> I completely agree.
> for-of should be the tool for iterating over collections.
> We should make it super easy to get a collection of an object's properties.
> The right name for that facility is @reflect or @inspect, not @iter.
> The appropriate Python analog is the inspect module, not itertools.

I defer to you, oh Python master. ;-)

But still, @reflect is gonna be big. Arguably a bunch of things in JS from day 1 up through ES5.1 should go there, or appear there in better and more stylish clothes.


More information about the es-discuss mailing list