clojure / clojure/clojurescript-site
Explain var meta not evaluated
Open
@mfikes is already working on this.
Since Apr 12, 2020.
minor
- Dominant language
- Shell
- Stars
- 107
- Forks
- 130
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.