clojurescript-site icon indicating copy to clipboard operation
clojurescript-site copied to clipboard

Explain var meta not evaluated

Open mfikes opened this issue 7 years ago • 1 comments

In the Differences from Clojure page, in the Metadata section, I was thinking of adding some documentation that meta placed on vars is not evaluated, but left as a symbol, as illustrated by the following REPL interaction:

cljs.user=> (def foo :foo-val)
#'cljs.user/foo
cljs.user=> (def ^foo xs ^foo [])
#'cljs.user/xs
cljs.user=> (:tag (meta xs))
:foo-val
cljs.user=> (:tag (meta #'xs))
foo

Note that in Clojure, the last form would evaluate to :foo-val.

If this is indeed correct, willing to write up some copy for that section to cover the difference.

mfikes avatar Feb 24 '18 01:02 mfikes

Go for it

swannodette avatar Apr 12 '20 17:04 swannodette