edn-format / edn

Extensible Data Notation
2.61k stars 96 forks source link

The edn spec inaccurately describes what characters are allowed in symbols. #62

Closed bitemyapp closed 10 years ago

bitemyapp commented 10 years ago

Just show the damn symbolPat regex from Clojure core.

The spec even forgets < is a valid symbol despite using it in the Datomic tutorial.

alexanderkiel commented 10 years ago

You are right (type (clojure.edn/read-string "<")) returns clojure.lang.Symbol in clojure 1.5.1.

alexanderkiel commented 10 years ago

To clarify this further, the spec says in section symbols:

Symbols begin with a non-numeric character

This includes <.

bitemyapp commented 10 years ago

:+1: