Final iterator spec

Brandon Benvie bbenvie at mozilla.com
Thu Feb 20 02:53:15 PST 2014


What you're probably seeing is that the wiki no longer has up to date information. As things have been fully fleshed out in the es6 draft spec, the wiki is no longer up to date.

To answer your question, the iterator protocol hasn't changed back to using StopIteration. It's still { value, done }.

> On Feb 20, 2014, at 2:27 AM, joe <joeedh at gmail.com> wrote:
> 
> A while back, the wiki Harmony draft spec for iterators changed from a Pythonic StopIteration approach to one where iterator objects return a {value : iter-value, done : bool} object.  It since seems to have changed back.  Is that the case, or am I misreading the situation?
> 
> It seems that Tracuer has yet to switch back, and before I bug the developers on that project I wanted to make sure that StopIteration is, in fact, back.
> 
> Thanks,
> Joe Eagar
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss


More information about the es-discuss mailing list