> > FWIW co/koa still don't entirely solve the problem, there's really no way > to completely solve it without coroutines with separate stacks, >
No! Problem can be solved with generators alone. Of course it is easier with real coroutines (fibers) but it is also manageable with shallow continuations. Take a look at https://github.com/bjouhier/galaxy. Try/catch semantics can also be implemented with pure callbacks (try/finally too) but the pattern is very heavy. It's only viable if you preprocess the code. Bruno -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.