Skip to content

Instantly share code, notes, and snippets.

@amalloy
Created March 11, 2011 18:48
Show Gist options
  • Save amalloy/866354 to your computer and use it in GitHub Desktop.
Save amalloy/866354 to your computer and use it in GitHub Desktop.
user>
(let [[_ e-class e-name & e-ret :as catch-clause] '(catch Exception _ x)]
`(catch ~e-class ~e-name (do (println ~e-name) ~@e-ret)))
(catch Exception _ (do (clojure.core/println _) x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment