Skip to content

Instantly share code, notes, and snippets.

@llasram
Forked from timmc/gist:2338038
Created April 8, 2012 18:34
Show Gist options
  • Save llasram/2339031 to your computer and use it in GitHub Desktop.
Save llasram/2339031 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)
user=> (identical? false (eval '(wtf)))
false
user=> (eval '(identical? false (wtf)))
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment