4 ms·
Clojure supports class based OOP? Never heard of it. Could you give me a link to the relevant documentation page?
by Nekorosu 9y ago
Clojure supports class based OOP? Never heard of it. Could you give me a link to the relevant documentation page?
- sooheon 9y agoNot really a OOP programmer, but I think the following cover some reasonable subset of OOP: https://clojure.org/reference/multimethods https://clojure.org/reference/multimethods https://clojure.org/reference/protocols https://clojure.org/reference/protocols
- akmiller 9y agoVia records (defrecord) and protocols.
- pjmlp 9y agoClojure supports protocols and multi-methods, the building blocks of CLOS, Common Lisp Object System. Already at Xerox PARC, Lisps started to support OOP, with FLAVORS for Interlisp-D being one of the first ones. EDIT: Disregard the last paragraph, lispm is right.