Check out Dart's iterators

Domenic Denicola domenic at
Mon Feb 11 10:35:24 PST 2013

From: es-discuss-bounces at [es-discuss-bounces at] on behalf of Oliver Hunt [oliver at]

> 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?

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

More information about the es-discuss mailing list