Why can’t for-of be applied to iterators?

Andy Wingo wingo at igalia.com
Wed Jun 12 08:30:33 PDT 2013


On Wed 12 Jun 2013 17:17, Jason Orendorff <jason.orendorff at gmail.com> writes:

> function *giveMeAEmptyIterator() {}

Is this valid?

  https://bugs.ecmascript.org/show_bug.cgi?id=1283

(I think it should be, FWIW)

> This will work fine even if for-of remains as currently specified

This would work fine under any proposal currently under discussion,
AFAIK.

Andy


More information about the es-discuss mailing list