yield* desugaring

Andy Wingo wingo at igalia.com
Tue Apr 30 06:15:11 PDT 2013


Hi!

I agree with you except with one nit :)

On Tue 30 Apr 2013 14:19, Andreas Rossberg <rossberg at google.com> writes:

> The moral is that one should simply avoid putting a yield inside a
> try-finally. There is no guarantee that control ever returns.

It seems that yield in a try/finally can be useful in a more controlled
environment like within a task.js scheduler, where you know that there
is some entity out there managing coroutine life-cycles.

Cheers,

Andy


More information about the es-discuss mailing list