chickadee » continuations » catch

(catch cont xpr ....)syntax

The same as let/cc of miscmacros but with a different datatype: Binds the cont variable to the current continuation as a continuation and executes the body xpr .... in this context. Typically used as follows

 
(catch k
  ...
  (if ...
    (throw k val)
    ...))