Skip to content

Instantly share code, notes, and snippets.

@KeenS
Created March 6, 2016 14:21
Show Gist options
  • Save KeenS/628b9ee61594eff29568 to your computer and use it in GitHub Desktop.
Save KeenS/628b9ee61594eff29568 to your computer and use it in GitHub Desktop.
(import (scheme base)
(scheme write))
(let ((l (call/cc (lambda (k)
(with-exception-handler
(lambda (e)
(display e))
(lambda ()
(call/cc (lambda (l)
(k l)))
(raise 'an-error)))))))
(l))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment