brendan at mozilla.org
Mon Jun 26 06:45:32 PDT 2006
On Jun 26, 2006, at 4:09 AM, Lars T Hansen wrote:
> The point I want to make is that we probably do not want to provide
> full continuations as an abstraction on which to build threads,
> coroutines, generators, exceptions, and so on, but instead to provide
> these other more controllable forms directly instead.
Thanks for the complete example. I wanted to back up Lars here by
affirming that we've discussed call/cc in TG1 meetings and come to
this conclusion, already. So this is a consensus position, as far as
Rhino (http://www.mozilla.org/rhino/) has a call/cc implementation
from the Apache Cocoon folks, exposed as a Continuation object.
Chris Double knows this well, including a bug (http://www.google.com/
So far, the bugs or limitations combined with the promise of call/cc
generality seem to me to indicate overkill, or overreach. If anyone
on this list has an example use-case of call/cc in JS that you think
is important, and that can't be mapped to coroutine-generators
(Python 2.5, PEP 342), please post it.
More information about the Es4-discuss