4 ms·
EDN is natively extensible to more types, for example, the dozens of types postgres supports[1] which actually makes EDN significantly more suitable for this us
by dustingetz 14y ago
EDN is natively extensible to more types, for example, the dozens of types postgres supports[1] which actually makes EDN significantly more suitable for this use case. JSON can't encode the difference between a string, a date, a timestamp, and a uuid -- they're all encoded as strings and consuming code needs to go out of band to understand the type.
the stuff about EDN being natively supported by clojure is a red herring and irrelevant.
[1] http://www.postgresql.org/docs/8.4/static/datatype.html http://www.postgresql.org/docs/8.4/static/datatype.html