On Thu, Apr 24, 2014 at 12:57 PM, Allen Wirfs-Brock
<[email protected]>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
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to