5 ms·
Clojure Protocols are really a great way to extend types. I think it's a nice fit with both the functional and dynamic nature of Clojure, and it is carefully de
by abp 15y ago
Clojure Protocols are really a great way to extend types. I think it's a nice fit with both the functional and dynamic nature of Clojure, and it is carefully designed to allow "open" types while completely avoiding monkey-patching. It just seems like the perfect balance, even if it's hard to understand at first. I think it might even lead to "better" OOP in Clojure than in Java.
Exactly. Funny thing. Better OOP in a functional language than in a OOP-language.
But i don't think it's hard to understand. I've seen a lot of good explanations in presentations and articles. Also the concept is really easy.