Skip to content

Instantly share code, notes, and snippets.

@si14
Created September 20, 2013 14:39
Show Gist options
  • Save si14/6638563 to your computer and use it in GitHub Desktop.
Save si14/6638563 to your computer and use it in GitHub Desktop.
(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