natively negotiating sync vs. async...without callbacks

Tom Van Cutsem tomvc.be at gmail.com
Wed Dec 8 23:36:41 PST 2010


>
> The spirit of the proposal is that this special type of statement be a
> linear sequence of function executions (as opposed to nested
> function-reference callbacks delegating execution to other code).
>
> The special behavior is that in between each part/expression of the
> statement, evaluation of the statement itself (NOT the rest of the program)
> may be "suspended" until the previous part/expression is fulfilled. This
> would conceptually be like a yield/continuation localized to ONLY the
> statement in question, not affecting the linear execution of the rest of the
> program.
>

This reminds me of a proposal by Kris Zyp a couple of months ago ("single
frame continuations")
https://mail.mozilla.org/pipermail/es-discuss/2010-March/010865.html

I don't think that discussion lead to a clear outcome, but it's definitely
related, both in terms of goals as well as in mechanism.
I also recall it prompted Dave Herman to sketch the design space of
(single-frame) continuations for JS:
https://mail.mozilla.org/pipermail/es-discuss/2010-April/010894.html

Cheers,
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20101209/533d550a/attachment.html>


More information about the es-discuss mailing list