4 ms·
I think people got burnt with OOP one too many times, so they stripped it out in both Go and Rust. Rust still has structs with methods kind of OOP, but you can
by wheelerof4te 4y ago
I think people got burnt with OOP one too many times, so they stripped it out in both Go and Rust.
Rust still has structs with methods kind of OOP, but you can also have that in C using structs with function pointers. So, not really OOP.
Let it die already.
- tialaramex 4y agoObject Oriented Programming is a style, like Generic Programming. A language can offer features which support this style well, or not, and you can insist on programming this way regardless of whether the features support it well.
- deltasevennine 4y agoBut he's saying the style is bad. Therefore new languages don't support it, well. What do you have to say to that rather then reiterating what everyone knows that OOP is a style of programming.
- tialaramex 4y agoI don't think OOP style is bad but it isn't the choice I'd make in many cases. Accordingly I don't think languages should go out of their way to support this style. In particular Multiple Inheritance is the sort of thing OO languages have (C++ and Python for example) which I am confident is a mistake. If your OO model requires multiple inheritance the model is wrong, go re-design it.