by abp · 15y ago · 0 comments
They're still riddled with boilerplate (anonymous functions) and are quite horrible to read and write (bracket nesting).
I sometimes wish node.js (and js in general) would adopt co-routines. They'd seem to be the perfect middle-ground here; async code that looks almost like threaded-code, and no more callback-hell.
https://github.com/sam-mccall/node-ship
(supports a few more things than just method chaining)
http://www.infoq.com/articles/surviving-asynchronous-program...