As with JSON, no support for algebraic data types (so tagged unions or recursive data types)?
That said, there should be no problem using edn to convey the values of types whose definitions are algebraic or recursive.
In particular:
"A tag may specify more than one format for the tagged element, e.g. both a string and a vector representation."
admits unions.
And the system itself nests arbitrarily, i.e. a tagged element can be defined in terms of others.
Values of this type:
data Tree = Empty
| Leaf Int
| Node Tree Tree
could be conveyed like this: #tree/Tree Empty
#tree/Tree [Leaf 42]
#tree/Tree [Node #tree/Tree Empty, #tree/Tree [Leaf 42]]And [Leaf 42]? What is this? Vector? Of elements of arbitrary type?
But a list of arbitrary elements is a quite natural and human-mind-friendly concept, and the Lisp notation, which intentionally omits any description of underlying representation, is a great idea.