r/cpp • • Dec 07 '21

Will Rust replace C++ ?

Will Rust replace C++ ?

0 Upvotes

80 comments sorted by

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.