Hi
According to the edn spec[1] '%' is a valid symbol and it's currently being used in datomics datalog to refer to rules. The ClojureScript reader is not able to read "%" as a symbol as shown by the following repl session:
cljs.user> (ns cljs.user (:require [cljs.reader :refer [read-string]]))
nil
cljs.user> (read-string "%")
org.mozilla.javascript.JavaScriptException: Error: Reader for % not implemented yet The reason for the error is at[2] where '%' is explicitly called out to throw the above error (probably to leave room for future extensions?).
Given the edn spec and the fact that the symbol can be read with the Clojure reader (and the new Clojure edn reader), should we lift this restriction and allow "%" to be read by the ClojureScript reader?
If all agree I can open an issue+patch on JIRA where I remove the line at [2].
/Jonas
[1]
https://github.com/edn-format/edn#symbols[2]
https://github.com/clojure/clojurescript/blob/master/src/cljs/cljs/reader.cljs#L401