4 ms·
EDN [1] and Transit [2]... Elegant weapons for a more civilized system. [1] https://github.com/edn-format/edn https://github.com/edn-format/edn [2] https://gi
by slowmovintarget 5y ago
EDN [1] and Transit [2]... Elegant weapons for a more civilized system.
[1] https://github.com/edn-format/edn https://github.com/edn-format/edn
[2] https://github.com/cognitect/transit-format https://github.com/cognitect/transit-format
- kaliszad 5y agoReally came here to search why EDN wasn't mentioned. It is used in Clojure/ ClojureScript/ hylang ... projects a lot. It is a superset of JSON, is in my opinion a lot more readable than JSON but familiar enough too. It has native sets e.g. #{1 2 "three" '("four element list with a string inside")} and keywords. Tagged elements can be used for extending e.g. with a timestamp (such as the built-in #inst) or #uuid. And it also supports comments and discards for stuff, that should be omitted in evaluation. As a sysadmin, YAML seems nice until you have actually done anything more advanced with it. See Julien Pivotto's presentation about some of its pitfalls: https://www.slideshare.net/roidelapluie/yaml-magic?next_slideshow=1 https://www.slideshare.net/roidelapluie/yaml-magic?next_slid... Btw. Jsonnet doesn't seem too bad either: https://www.youtube.com/watch?v=LiQnSZ4SOnw https://www.youtube.com/watch?v=LiQnSZ4SOnw and here some examples: https://jsonnet.org/ https://jsonnet.org/ but in my book, EDN still wins.