News for hackers. Stuff that matters.
Re:Escape from Callback Hell: Callbacks are the modern goto by pfraze on Friday November 02, 2012 @03:21PM (#4734292)
That's basically what the promises spec for Javascript gives you.
Re:Escape from Callback Hell: Callbacks are the modern goto by pufuwozu on Friday November 02, 2012 @05:12PM (#4734769)
Exactly. The promises spec defines the Promise monad. The problem is that JavaScript doesn't have monadic syntax, which would make the code a lot more readable.