Single frame continuations proposal

2010-03-30 Thread Kris Zyp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I wanted to propose the addition of a new syntax and API for single-frame continuations in ES6. The use of callback functions to continue the execution of code is extremely common pattern in JavaScript, particularly with asynchronous operations where

Re: Single frame continuations proposal

2010-03-30 Thread David Herman
Kris, Thanks for this proposal. I think it's got a lot going for it. I like the simplicity of the API, although I think it could be simplified even further. This is often called continuation passing style (CPS) and is quite verbose in JavaScript, difficult to debug, and can be very

Re: Single frame continuations proposal

2010-03-30 Thread Kris Zyp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/30/2010 4:20 PM, David Herman wrote: Kris, Thanks for this proposal. I think it's got a lot going for it. I like the simplicity of the API, although I think it could be simplified even further. This is often called continuation passing