News for hackers. Stuff that matters.
Re:Fixing the callback spaghetti in node.js by MostAwesomeDude on Thursday September 29, 2011 @12:34AM (#3051142)
Perhaps it would be interesting to see how it was done in Twisted: http://twistedmatrix.com/documents/current/api/twisted.inter...

We'd like to think that the C# guys were looking our way when they came up with async/await, but there's no proof. :3

Re:Fixing the callback spaghetti in node.js by cheez on Thursday September 29, 2011 @12:49AM (#3051170)
I love the way Twisted does it. Completely part of the way the language is supposed to work. It's a work of art IMO.
Re:Fixing the callback spaghetti in node.js by StavrosK on Thursday September 29, 2011 @06:44AM (#3051907)
Isn't this the best way so far to do these things? It turns asynchronous code into synchronous. I seem to remember Guido recommending this approach too.