Skip to content
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

Single-quote is not mentioned as a valid symbol character #67

Open
bendlas opened this issue Sep 18, 2014 · 5 comments · May be fixed by #89
Open

Single-quote is not mentioned as a valid symbol character #67

bendlas opened this issue Sep 18, 2014 · 5 comments · May be fixed by #89

Comments

@bendlas
Copy link

bendlas commented Sep 18, 2014

The language on symbols and keywords: https://github.com/edn-format/edn#symbols
doesn't mention, that ' is allowed in symbols.

@xpe
Copy link

xpe commented Sep 18, 2015

Good point.

It is also worth noting that according to the Clojure reader (documented at http://clojure.org/reader), ' is allowed in Clojure symbols (and thus keywords):

Symbols begin with a non-numeric character and can contain alphanumeric characters and *, +, !, -, _, ', and ? (other characters may be allowed eventually).

I think this is an error in the edn specification.

@xpe
Copy link

xpe commented Sep 18, 2015

See also https://groups.google.com/forum/#!topic/clojure-dev/b09WvRR90Zc

Clojure, EDN, JSON compared in detail here (wow!): https://github.com/wagjo/serialization-formats

@g3ntleman
Copy link

Printing all symbols of the core namespace gives +' as symbol. This cannot be parsed by a parser written after the spec. Who can fix the spec?

@g3ntleman
Copy link

There seems to be a similar problem with the spec not allowing the "<" and ">" characters in symbols.

@shinichy
Copy link

I think this is a spec bug. I created #89.

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

Successfully merging a pull request may close this issue.

4 participants