Skip to content

Instantly share code, notes, and snippets.

@MichaelDrogalis
Last active December 10, 2015 10:58
Show Gist options
  • Save MichaelDrogalis/4424278 to your computer and use it in GitHub Desktop.
Save MichaelDrogalis/4424278 to your computer and use it in GitHub Desktop.
;;; Form 1
(defprecondition some-func
(fn [& args]
(assert-conditions args))
(fn [e & args]
(error-handling args)))
;;; Form 2
(defprecondition some-func
name-of-precondition
(fn [& args]
(assert-conditions args)))
(defhandler some-func
name-of-precondition
(fn [& args]
(assert-conditions args)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment