Skip to content

Explain var meta not evaluated #171

Open
@mfikes

Description

@mfikes

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions