On May 13, 2013, at 6:11 PM, Brendan Eich <[email protected]> wrote:
> We've been over this at least twice. Let's get it right. No close, yield in
> try-with-finally ok.
+1
> Merge next and send by letting next take an optional parameter? Ok by me.
+1
> Make yield* work on any {next, throw}, not necessary but ok by me too.
Yes with one delta: if there's no .throw it still works, it just defaults to
(x) => { throw x }. This way you can write ordinary iterators without having to
worry about providing the default throw, and they still function properly as
generators.
Dave
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss