Skip to content

Instantly share code, notes, and snippets.

@fernandez14
Created November 3, 2014 17:12
Show Gist options
  • Save fernandez14/f8084710795a85b6de31 to your computer and use it in GitHub Desktop.
Save fernandez14/f8084710795a85b6de31 to your computer and use it in GitHub Desktop.
Syntax test
(def bit-bucket-writer
(proxy [java.io.Writer] []
(write [buf] nil)
(close [] nil)
(flush [] nil)))
(defmacro noprint
"Evalua la expresiones dadas con todas las impresiones a *out* silenciadas."
[& forms]
`(binding [*out* bit-bucket-writer]
~@forms))
(noprint
(println "Hello, nobody!"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment