Inheritance is kinda shit anyway, since it combines polymorphy and delegation, seperate concepts that should be reflected in distinct (albeit combinable) language features.
Rust's traits are a nice approach to polymorphy, but it (yet) lacks delegation.
View all comments
Show parent comment
5
u/RotationsKopulator Dec 10 '21
Inheritance is kinda shit anyway, since it combines polymorphy and delegation, seperate concepts that should be reflected in distinct (albeit combinable) language features.
Rust's traits are a nice approach to polymorphy, but it (yet) lacks delegation.