4 ms·
I read somewhere when someone was criticizing Rust for GUI stuff, that lack of OO and inheritance can be a real problem. Is that also true for Clojure?
by meowphius 5y ago
I read somewhere when someone was criticizing Rust for GUI stuff, that lack of OO and inheritance can be a real problem. Is that also true for Clojure?
- nlitened 5y agoIf I understand correctly, the author talks about pure-data approach to building GUI, and that’s pretty much the opposite of OO and inheritance.
- dgb23 5y agoModern languages like Rust/Go/Clojure typically incorporate polymorphism without the need of inheritance and get more out of it rather than less. The type of polymorphism and malleability you get from Clojure is much more expressive than class inheritance. You're losing the OO mental model, but gain very loose coupling (data coupling) and code that is easier to reason about. (The trade-off here is not for everyone though.) On top of that, Clojure is an extremely flexible, interactive language, which is fantastic especially for GUI programming (as mentioned in the article).
- tonsky 5y agoI am pretty sure it can be worked around or even emulated in Clojure with minimal effort if needed