Skip to content

Instantly share code, notes, and snippets.

@david-hodgetts
Created August 4, 2013 19:59
Show Gist options
  • Save david-hodgetts/6151703 to your computer and use it in GitHub Desktop.
Save david-hodgetts/6151703 to your computer and use it in GitHub Desktop.
macros to help printf-style debugging in clojure
(defmacro print-symbol [expr]
`(println
(str (name '~expr)
" -> "
(eval ~expr))))
(defmacro print-map-property [property aMap]
`(println
(str (name '~property)
" -> "
~(property aMap))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment