> > > 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?
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

