3 ms·
None of the features you cite are general features of the Lisp family of languages; they are features of specific Lisps. Clojure has its own unique features tha
by Zak 17y ago
None of the features you cite are general features of the Lisp family of languages; they are features of specific Lisps. Clojure has its own unique features that are absent from other languages, including Common Lisp. To be specific:
Clojure has multimethods with arbitrary dispatch functions as well as user-defined hierarchies that provide more flexibility than CLOS in many situations. There's no inheritance, but you can copy a structmap.
I do miss method combination and the programmable reader from CL, but I love that the standard library is largely defined in terms of generic functions, that lazy sequences are assumed by default, that every data structure is immutable, but still reasonably fast.
The perfect Lisp has not been written and probably never will be, but I certainly feel like I'm writing Lisp, and not some other language with Clojure.
- lispm 17y agoif you say: Clojure is a member of the family of Lisp languages x is the set of features that all the members of the Lisp family share Clojure has all features in x then this is trivially true and not surprising. But if you compare the specific language and implementation called Clojure with, say, the specific implementation Clozure CL (CCL), then I would say that there are quite a few features (and their benefits) of CCL that are both available in a lot of other Lisps (for example direct support for object-oriented programming or the ability to save and restart the state) that Clojure lacks. Also true, Clojure has a few features (especially features that are not widely shared among Lisps like STM) that CCL lacks.