the fine folks writing the Twisted Python library solved this problem years ago with the Deferred abstraction and the @inlineCallback decorator. there's a little bit of a performance penalty but an enormously huge increase in code readability.
No comments yet.