4 ms·
I don't find Clojure all that ugly. I think it's tiny bit of extra "syntax" help make it much more readable. When I see [] I know I'm in a vector and when I s
by zephjc 16y ago
I don't find Clojure all that ugly. I think it's tiny bit of extra "syntax" help make it much more readable. When I see [] I know I'm in a vector and when I see {} I know I'm in a map.
- mahmud 16y agoThat's the main cultural difference between clojure and CL. Clojure wants to be a broad language with concrete syntatic support for many data structures. CL is a tall language with fewer syntax than data structures; you can have vectors in literal sytnax, #(1 2 3), but you can also create them explicitly: (vector 1 2 3). Hashtables can only be created explicitly: (make-hash-table) then (setf (gethash "one" *) 1) but you're free to create your own syntax or shortcuts, which is what Alexandria provides: (hash-table-alist '(("one" 1) ("two" 2) ("three" 3)))