Created
February 2, 2019 01:01
-
-
Save hiredman/c09669ba90c306f54830864fab228363 to your computer and use it in GitHub Desktop.
reflection boxing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user=> | |
(as-> clojure.lang.RT % | |
(.getDeclaredField % "checkSpecAsserts") | |
(doto % (.setAccessible true)) | |
(.get % nil) | |
(doto % prn) | |
(if % :a :b)) | |
false | |
:a | |
user=> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
also fun
(as-> java.lang.Boolean % (.getDeclaredField % "value") (doto % (.setAccessible true)) (.get % clojure.lang.RT/F) (doto % prn) (if % :a :b))