Created
September 20, 2013 14:39
-
-
Save si14/6638563 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(def test-form1 | |
'(let [^String a "a"] | |
:ok)) | |
(def test-form2 | |
`(let [^String ~'a "a"] | |
:ok)) | |
(def test-form3 | |
`(let [^String a# "a"] | |
:ok)) | |
(def test-form4 | |
`(let [~(with-meta 'a {:tag 'java.lang.String}) "a"] | |
:ok)) | |
(def test-form5 | |
`(let [~(with-meta 'a {:tag java.lang.String}) "a"] | |
:ok)) | |
(defn tags-types [form] | |
(clojure.walk/prewalk | |
(fn [form] | |
(when-let [m (meta form)] | |
(when-let [t (:tag m)] | |
(prn m t (type t)))) | |
form) | |
form)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment