Andy Wingo (2013-04-30T13:15:11.000Z)
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
github at esdiscuss.org (2013-07-12T02:26:56.472Z)
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.