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
// scalavalp= newParser(defaultConfiguration())
valr= p.nextValue(newParseable("{:x 1/2}")).asInstanceOf[java.util.Map[Keyword,Any]].toMap
us.bpsm.edn.EdnSyntaxException:Not a number: '1/'.
at us.bpsm.edn.parser.ScannerImpl.readNumber(ScannerImpl.java:434)
at us.bpsm.edn.parser.ScannerImpl.scanNextToken(ScannerImpl.java:153)
at us.bpsm.edn.parser.ScannerImpl.nextToken(ScannerImpl.java:61)
...
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: