for-of loops, IteratorClose and the rest of the iterations in the spec

Boris Zbarsky bzbarsky at mit.edu
Wed Sep 10 14:07:48 PDT 2014


On 9/10/14, 4:57 PM, Domenic Denicola wrote:
> Relatedly, it would be *really* nice to have a spec-level for-of, both for ES and for web specs.

You mean so people don't have to write things like 
http://heycam.github.io/webidl/#add-map-elements-from-iterable by hand? 
  Yeah, it would.

> (Not to mention a spec-level try/catch, but that's another story...)

Abrupt completions sort of give you that in ES.  Or did you mean so you 
don't have to sprinkle ReturnIfAbrupt() everywhere?

-Boris


More information about the es-discuss mailing list