Comprehensions, Where Art Thou?
zenparsing at gmail.com
Mon Aug 11 11:12:02 PDT 2014
> The plan is to leave the iteration protocol "duck-typed" or "structural",
> but enable reuse of common array-extra-like methods via Iterator.prototype
> (which will be on the generator iterator objects' prototype chains).
> The Iterator function can be used as an adaptor, to go from any old
> iterator (duck-typed) to an instance of the nominal type.
That sounds good (although I haven't thought it through), but is that plan
incompatible with comprehensions as a syntactic convenience?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss