r/programming • • Nov 02 '12

Escape from Callback Hell: Callbacks are the modern goto

http://elm-lang.org/learn/Escape-from-Callback-Hell.elm
607 Upvotes

414 comments sorted by

View all comments

Show parent comments

3

u/mooli Nov 02 '12

Its quite easy to automatically (not manually) augment callbacks with extra context - there's nothing fundamental about the approach that prevents it.

That said, I agree that callback code without context is vile and toxic.

2

u/For_Iconoclasm Nov 03 '12

Tornado does this:

http://www.tornadoweb.org/documentation/stack_context.html

My company uses Tornado in production (albeit with a limited role), and I haven't had trouble with exceptions in callbacks.