"std:iteration" exports

Claude Pache claude.pache at gmail.com
Mon Oct 7 05:23:05 PDT 2013


According to the latest version of the ES6 draft, section 25.2 [1], the "std:iteration" module exports these names:

* iterator
* GeneratorFunction
* Generator

I have two questions:

1. What does the "iterator" name refer to? My guess is that it is intended to give access the @@iterator symbol.
2. If it represents indeed the @@iterator symbol, is it useful? since we can obtain that symbol via `Symbol.iterator` since rev.19 of the draft.

—Claude

[1] http://people.mozilla.org/~jorendorff/es6-draft.html#sec-std:iteration-exports


More information about the es-discuss mailing list