News for hackers. Stuff that matters.
Re:Escape from Callback Hell: Callbacks are the modern goto by allertonm on Friday November 02, 2012 @08:36PM (#4735466)
If you are coding for the browser, neither of the options you suggest are available to you. Now what?

Answer: you do it with callbacks, because they are literally the only mechanism available. Welcome (back) to callback hell.

Re:Escape from Callback Hell: Callbacks are the modern goto by jblow on Friday November 02, 2012 @09:13PM (#4735566)
Hence my caveat about not being able to avoid it if an API forces you to use them.

But if I were making a replacement language that runs in the browser, among the highest priorities would be to make it not work via callbacks.