clojure / clojure/clojurescript-site

Explain var meta not evaluated

Open
#171 1 comment 2 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.