edn-format / edn

Extensible Data Notation
2.62k stars 96 forks source link

Tagged Elements Issue? #72

Closed g3ntleman closed 8 years ago

g3ntleman commented 8 years ago

The result from evaluating (ns-refers *ns*) contains thinks like

#'clojure.core/+

for which I'm uncertain what is meant from the spec. It starts like a tagged value, but those require an alphabetic character following, which is not the case here ('). So should be whole thing be parsed as the symbol + with a namespace of #'clojure.core?

Does not seem right to me. Could someone please clarify?

g3ntleman commented 8 years ago

Ok, I found that this is the Var-Quote Macro.

Var-quote (#')

'x ⇒ (var x)

So is #'clojure.core valid EDN? at all?

rschmitt commented 8 years ago

No, nor is it supposed to be, since Clojure programs are written in a superset of Edn. #' is a Clojure reader macro and var is a special form.

g3ntleman commented 8 years ago

Thanks!