edn-format / edn

Extensible Data Notation
2.62k stars 96 forks source link

allow floats to end in point, like clojure #76

Open robx opened 6 years ago

robx commented 6 years ago

This spec is currently at odds with the de facto spec that is the clojure implementation, in not allowing 1. as a floating point number.

Since clojure is unlikely to change here and EDN implementations in the wild seem to end up following clojure instead of this spec, it seems to be best to bring the spec in line with the clojure implementation.

$ clojure
Clojure 1.9.0
user=> 1.
1.0