ClojureScript

Allow the reader to read the %-symbol

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

According to the edn spec '%' is a valid symbol. The clojurescript reader does not currently allow this.

ClojureScript:cljs.user> (r/read-string "%")
"Error evaluating:" (r/read-string "%") :as "cljs.reader.read_string.call(null,\"%\")"
org.mozilla.javascript.JavaScriptException: Error: Reader for % not implemented yet

Note that both the Clojure reader as well as the new clojure.edn reader both read "%" as a symbol without problems.

More discussion on the clojure-dev mailing list at https://groups.google.com/forum/#!topic/clojure-dev/vPv0cPZxTCE

Activity

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: