Closed martintrojer closed 10 years ago
Clojure rationals are not valid edn numbers as far as I can tell.
https://github.com/edn-format/edn
edn supports:
Rationals are not mentioned in the spec.
On the other hand, clojure.edn/read accepts rationals without complaint (see EdnReader.java) but that's probably an accident resulting from the fact that EdnReader.java is basically a copy-paste of LispReader.java with some stuff removed.
If edn-java did support reading rational numbers, what type would you expect the result to be? Java doesn't have a standard representation for rational numbers that I'm aware of.
See also edn-format/edn#47.
Will not implement reading rationals as this is not in the spec.