Skip to content

Instantly share code, notes, and snippets.

@yayitswei
Created November 10, 2013 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yayitswei/7395401 to your computer and use it in GitHub Desktop.
Save yayitswei/7395401 to your computer and use it in GitHub Desktop.
This snippet doesn't catch an exception in `(something-risky)`.
(loop [o (init-obj)]
(when-let [o (try (something-risky)
(catch Exception e (record-exception! e)))]
(recur o)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment