Check out Dart's iterators

Brendan Eich brendan at mozilla.com
Mon Feb 11 13:29:26 PST 2013


Domenic Denicola wrote:
> From: es-discuss-bounces at mozilla.org [es-discuss-bounces at mozilla.org] on behalf of Oliver Hunt [oliver at apple.com]
>
>> For now I would say that we shouldn't expose the internal implementation behaviour of yield (which is what being able to explicitly create or call a generator produces).  That fairly trivially resolves the StopIteration behaviour by pushing it out of the ES6 spec.  If there's enough demand for manually creating or 'calling' a generator then we can fix it in ES6.x/7
>
> Would this prevent TaskJS from working in ES6?

Sorry, we are not going to do that.

Oliver was around at at least one of the meetings where iterators got 
consensus or kept it. He's been AWOL enough that I'm going to say right 
here that he doesn't get to throw a veto.

> If so, I'm so sorry I started this thread, I take it all back!!!!!! :P

Yeah, what was your point?

It's fine if people want to bitch about iterators or StopIteration. It's 
not like es-discuss has enough noise, right?

But where is the stand-up work on a better proposal, 
prototype-implemented in multiple engines and sold and re-sold to TC39, 
achieving recorded consensus? It's not there. So keep bitching, but 
don't expect ES6 to change without you or someone else actually putting 
in the sweat equity.

/be


More information about the es-discuss mailing list