Skip to content

Instantly share code, notes, and snippets.

@timmc
Forked from amalloy/gist:2335054
Created April 8, 2012 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save timmc/2338038 to your computer and use it in GitHub Desktop.
Save timmc/2338038 to your computer and use it in GitHub Desktop.
(import '(java.io ByteArrayInputStream ByteArrayOutputStream
ObjectInputStream ObjectOutputStream))
(defmacro wtf
[]
(Boolean. false)) ;; note the lack of syntax-quote
---------
user=> (wtf)
false
user=> (def f* *1)
#'user/f*
user=> (def f (wtf))
#'user/f
user=> [(wtf) f* f]
[false false false]
user=> (map #(identical? % (Boolean/valueOf false)) [(wtf) f* f])
(true false false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment