Generator return() and exceptions

Brendan Eich brendan at mozilla.org
Wed Jul 23 11:12:08 PDT 2014


Allen Wirfs-Brock wrote:
> Now that we have return() it isn't clear to me that we actually need 
> throw() or whether for-of/yield* should call throw() like they 
> currently do.

Wait, throw is useful anyway, for exception-throwing apart from 
returning. Right?

Also I do not know what you mean by "like they currently do".

I hope this is all pre-caffeine confusion on my part!

/be


More information about the es-discuss mailing list