3 ms·
One of the reasons it has those data structures is because it sits on the JVM and to maintain compatibility with Java apps it must use them and provide a syntax
by teamonkey 3y ago
One of the reasons it has those data structures is because it sits on the JVM and to maintain compatibility with Java apps it must use them and provide a syntax for them. That’s a practical choice, of course, but also less of an idiomatic lisp.
In (pure) lisp there is only one main data structure and it’s everywhere.
- kaba0 3y agoJava doesn’t have maps or whatnot, as proved by many other lisp dialects being written for the JVM. Clojure’s decision was of practical importance and a very good one at that (not everything is a list, especially not semantically)