3 ms·
i wish there was a chance for EDN[1] to replace JSON. it's a shame the industry defaulted to a subset of javascript as a data notation format considering all it
by keymone 9y ago
i wish there was a chance for EDN[1] to replace JSON. it's a shame the industry defaulted to a subset of javascript as a data notation format considering all it's shortcomings =/
yeah, i get it, "but it has native support in all browsers" is a valid argument, i just wish it wasn't.
[1] https://github.com/edn-format/edn https://github.com/edn-format/edn
- xfer 9y agoIn what regard EDN is "better" than JSON? the point of the post was the RFC specification is not tight and there are corner cases. I don't see any rigor in the given link either..
- keymone 9y agoit is better in regard that: - there exists single reference implementation, which rules out points like scalars not being valid JSON in some parsers despite being part of the spec - it is extensible in a manner that never invalidates the syntax for parsers that do not use corresponding extensions (this is huge actually) - comments are part of the spec, so it essentially replaces both json and yaml - richer set of primitive types - commas are whitespace (best feature ever) the rest should definitely be handled in BNF spec, but the above makes EDN immediately much better than JSON
- deleted 9y ago[deleted]
- draegtun 9y agoIt's even a bigger shame that Crockford wasn't able to go with Rebol (instead of "discovering" JSON), which he was originally pushing/planning :(