3 ms·
> S-expressions inherits all trouble with data types from json (dates, times, booleans, integer size, number vs numeric string). Hm, not sure that's true, S-ex
by diggan 6y ago
> S-expressions inherits all trouble with data types from json (dates, times, booleans, integer size, number vs numeric string).
Hm, not sure that's true, S-expressions would only define the "shape" of how you're defining something, not the semantics of how you're defining something. EDN https://github.com/edn-format/edn https://github.com/edn-format/edn for all purposes is S-expressions and have support for custom literals and more, to avoid "the trouble with data types from JSON"
- gnud 6y agoYes, EDN is S-expressions plus a bunch of semantic rules. Parsing EDN is quite a bit more complex than just parsing S-expressions, just because you need to support a bunch of built in types, as well as arbitrary exensions through 'tags'. The tag system is quite brilliant though.