These have been a bone of contention in the LISP, ML, Smalltalk and Python worlds for years. some hold them as a superior solution to the issue of resolving deep nesting, as well as a mechanism to build exception handling around. Others see them as a crock that only exacerbates the problem. If you're familiar with them, what do you think?
For more information, see Continuations made Simple (with examples in Python),
Searching an Explanation: call/cc and 'do' Strangeness (part of a discussion thread),
Continuations and Stackless Python,
Applications for Continuations,
An Introduction to Scheme (a series of slides from a lecture; not very useful, but it does illustrate the use of continuations for exception handling), or
An Introduction to Scheme and its Implementation.
(I must admit, I haven't used them and don't fully understand them, myself, so I haven't formed any solid opinions myself. It does seem to be an elegant method in the formal sense, but a very confusing one in practice.) |