Skip to content

Explain var meta not evaluated #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mfikes opened this issue Feb 24, 2018 · 1 comment
Open

Explain var meta not evaluated #171

mfikes opened this issue Feb 24, 2018 · 1 comment
Assignees
Labels

Comments

@mfikes
Copy link
Member

mfikes commented Feb 24, 2018

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.

@swannodette
Copy link
Member

Go for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants