News for hackers. Stuff that matters.
Re:Google Releases JavaScript.next to JavaScript Compiler Tr... by munificent on Wednesday May 04, 2011 @11:14AM (#2514068)
The naming here comes from Mozilla's earlier implementation (https://developer.mozilla.org/en/JavaScript/Guide/Iterators_...). Personally, I would have preferred iterate().

Traceur doesn't use the same Python-style semantics as Mozilla does: it doesn't throw an error to stop iteration. Instead, it's closer to Java or C# where moveNext() returns false if the iterator is done.

There are no comments on this comment yet.