Immediate closing of iterators

Jeff Thompson jeff at thefirst.org
Fri Dec 15 11:34:58 PST 2006


Brendan Eich wrote:
> What's wanted is that close run promptly *only* in the case of a for-in 
> loop where no reference to the iterator-generator escapes to the heap.
> 
> This is a reasonable thing to want, and it's what 
> https://bugzilla.mozilla.org/show_bug.cgi?id=349326 requests.  

Yes, as you say, I'm only talking about the case of the for-in loop.
Thanks for looking into this.

- Jeff




More information about the Es4-discuss mailing list