4 ms·
Fair enough. Though wouldn't that work better with languages like Java where the programmer typically ends up making a type or class for most things? With lang
by deckeraa 6y ago
Fair enough. Though wouldn't that work better with languages like Java where the programmer typically ends up making a type or class for most things?
With languages like Clojure it's fairly typical to declare no classes or types and to simply have your data structure be a composition of maps, sets, and vectors, etc.
I suppose you could use your Clojure.spec keywords as the tag names in XML, but that's probably going to be more work than (clojure.edn/read-string (slurp "my-data.edn")). Could be an interesting option if you had to use XML as an interchange format.