5 ms·
Wasn't this the Clojure approach? You don't need cons cells to have s-expressions and an elegant core set of operations and data structures.
by nerdponx 4y ago
Wasn't this the Clojure approach? You don't need cons cells to have s-expressions and an elegant core set of operations and data structures.
- eyelidlessness 4y agoUnless you have reason to worry about the internals and how they’re implemented (which last I used Clojure is unavoidable for non-trivial code, but I don’t think that’s intended), the data structures should all conceptually desugar to s-expressions. And they certainly do at the reader level. All of the non-list literal types are semantically equivalent to some kind of list representing how their values are defined or generated as a [specialization of] `(seq . …)`.