Forwarding `return()` in generators

Brendan Eich brendan at
Fri Mar 27 08:48:01 UTC 2015

Axel Rauschmayer wrote:
> That is a difference between iterators that you have to be aware of 
> and that needs to be documented per iterable. It’d be great if all 
> iterables were indeed the same in this regard.

You're right, of course -- my point was too narrow, I was addressing 
only the "can implement return handling in either a generator function 
body or a custom iterator" side of the coin.


More information about the es-discuss mailing list