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 ? -- Jorge. _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss