Clojure doesn't have call/cc, but you don't want undelimited continuations anyway.
We argue against
call/ccas a core language feature, as the distinguished control operation to implement natively relegating all others to libraries. The primitivecall/ccis a bad abstraction -- in various meanings of 'bad' shown below, -- and its capture of the continuation of the whole program is not practically useful. The only reward for the hard work to capture the whole continuation efficiently is more hard work to get around the capture of the whole continuation. Both the users and the implementors are better served with a set of well-chosen control primitives of various degrees of generality with well thought-out interactions...
...Offering
call/ccas a core control feature in terms of which all other control facilities should be implemented turns out a bad idea. Performance, memory and resource leaks, ease of implementation, ease of use, ease of reasoning all argue againstcall/cc. If there is really one distinguished control feature to implement as a primitive, with others relegated into libraries, it is notcall/cc.
David Nolen wrote a delimited continuations library for Clojure. Try it out!
###delimc
A delimited continuations library for Clojure 1.4.0 (and 1.3.0). Portions based on cl-cont by Slava Akhmechet (http://defmacro.org)...