4 ms·
I don't understand your position on lists. In Clojure, lists, vectors, and other collections are unified under the Seq abstraction. To me, they are all the same
by jared314 13y ago
I don't understand your position on lists. In Clojure, lists, vectors, and other collections are unified under the Seq abstraction. To me, they are all the same, until I need some specific behavior or performance characteristic.
- hga 13y agoIt's aesthetic, how the code looks (e.g. in an editor), and can't be separated from a quarter century of LISP experience (Lisps where only lists/pairs are syntactically first class). Note data in code is an exception, it's perfectly fine to e.g. include literals of other collections. Don't take me wrong, making the other collections syntactically first class and unifying them under the Seq abstraction is a really good thing, in fact when I appreciated that it was the first thing that got me really excited about Clojure, especially Clojure as "the next Lisp". But personally, if just for myself, I would have kept the vectors out of the syntax and depended on indentation in smart editors.
- jcrites 13y ago> Lisps where only lists/pairs are syntactically first class There are several types of first class syntax in Lisp: http://amitp.blogspot.com/2007/04/lisp-vs-python-syntax.html http://amitp.blogspot.com/2007/04/lisp-vs-python-syntax.html