3 ms·
It seems that what people actually mean when they say "OOP" is inheritance. I haven't used Julia, but it seems that Nim has inheritance[1]. Rust has traits tha
by apta 7y ago
It seems that what people actually mean when they say "OOP" is inheritance.
I haven't used Julia, but it seems that Nim has inheritance[1]. Rust has traits that can have default methods, so it's closer to Java and C# in that regard.
OOP is quite useful, it's easy to write bad code in any language (and I've seen lots of it in golang for instance, which, due to the nature of the language, ended up making it even more difficult to follow than badly written Java for instance). So be careful to not fall for the hype that is going on.
[1] https://nim-lang.org/docs/tut2.html#object-oriented-programming-inheritance https://nim-lang.org/docs/tut2.html#object-oriented-programm...