You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EdnReader.java also accepts rationals without complaint, but those go unmentioned in the spec. It looks to me like an accident resulting from the fact that EdnReader.java began as a copy-paste job of LispReader.java.
There's a meta-point here: I don't think it's helpful if every edn reader supports a differentsuperset of the notation described by the spec.
EDN read is more liberal than the spec. I don't see that as a problem, as the spec is the arbiter, not implementations. The spec is going to start conservatively, but these may be added iff there is demand/need.
The regex at https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/EdnReader.java#L28-L30 allows for octal, hex, and arbitrary base (e.g. 3r2011012) ints.
Is the edn definition incomplete or is the clojure EDN reader too liberal?
The text was updated successfully, but these errors were encountered: