On Fri, Oct 21, 2011 at 3:20 PM, Jorge <jo...@jorgechamorro.com> wrote:

> On 21/10/2011, at 17:40, Eric Jacobs wrote:
>
> > Jorge,
> >
> > Would it still be satisfying to you if instead of writing the call
> expression like this:
> >> try {
> >>   response = asyncFunction(request); //might suspend execution
> >> }
> >> catch (e) {
> >>   //whatever
> >> }
> >> //our code continues here
> > we needed to write it with an explicit annotation, like this:
> >
> > response = yield asyncFunction(request); //might suspend execution
> >
> >
> > or perhaps this:
> >
> > yield { response = asyncFunction(request); } //might suspend execution
> >
> >
> > or some other creative way of statically encoding the "might suspend
> execution" condition into the syntax?
>
> Yes, of course, it would be fine. Why ?
>


Because this is the fundamental difference between shallow and deep
continuations.
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to