> All three generator methods do the same basic thing: they resume the > generator with a "completion" and return the next-yielded-value (or the > return value, if done is true). The only difference is which type of > completion is used to resume the generator: "normal", "throw", or "return".
OK. I see the use case for `throw()` (e.g. to convert a promise rejection into an exception when using generators for async). The only use case for `return()` is closing an iterator, then(?) -- Dr. Axel Rauschmayer [email protected] rauschma.de
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

