Default iterator

Allen Wirfs-Brock allen at wirfs-brock.com
Thu Jun 21 15:46:29 PDT 2012


On Jun 20, 2012, at 9:37 PM, Erik Arvidsson wrote:

> Jason Orendorff updated the iterator proposal a bit. Thank you Jason.
> I'd like to point out an issue with it though.
> 
> In our previous discussion I had come to the understanding that the
> default iterator would use a private name. The main benefit for using
> a private name is to not pollute the property name space.

Well, the ES6 spec. draft uses a private name, so I don't know if editing the wiki proposal will have any effect :-)  If somebody things the spec should change there probably should have a bug filed against it and a subsequent discussion.






More information about the es-discuss mailing list