3 ms·
If he was pro-OOP, why not add all of CLOS?
by KingMob 4y ago
If he was pro-OOP, why not add all of CLOS?
- pjmlp 4y agoEasy, first of all, if he was anti-OOP, he wouldn't have added any of it. Secondly, what he added is enough for doing OOP in Clojure, in fact, very few OOP languages support everything that CLOS allows for, and that doesn't make them less OOP. OOP !== Java 1.0
- KingMob 4y agoAll kidding aside, it's obvious that Hickey is not entirely anti-OOP. But then, that's not what I said; I said he was "anti-inheritance". And my complaint is that unlike many other places in Clojure, there's no easy escape hatch for inheritance when you need it. `proxy` is limited, and `gen-class` involves AOT compilation, which can cause various problems.