April 10 2014 Meeting Notes

Mark S. Miller erights at google.com
Thu Apr 24 13:47:14 PDT 2014


On Thu, Apr 24, 2014 at 12:57 PM, Allen Wirfs-Brock
<allen at wirfs-brock.com>wrote:
[...]

> Really, the only reason we even considered this at the TC39 meeting was
> because we believed it was a fix it now, or never situation.  I'm now less
> convinced that this is the situation.  If we shipped ES6 as is and later
> added @@return and the finally maybe-call within for-of, is anybody going
> to be unhappy or broken?  It would only really impact any generators that
> have finally cleanups and and which are used in for-of loops with early
> terminations.
>

That "only" is a big deal. Even if the generator has no explicit "finally"
clause, by "return"ing from the yield point it cannot be resumed. If ES6
generators doesn't return from the yield point under these circumstances,
and are thus resumable, I doubt we will dare make ES7 generators not
resumable under these same circumstances.

I do think it's now or never. I prefer now.


-- 
    Cheers,
    --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140424/ffdfe5ab/attachment.html>


More information about the es-discuss mailing list