Re:Rust 1.17
by whyever on Friday April 28, 2017 @11:23AM
(#14220120)
What do you want to use inheritance for? In my experience, it is usually better to use composition and sum types.
[ Parent
| on HN ]
Inheritance is usually really great when you want to extend the type outside the context it was created in.
GUI is a very clear example of that where composition may work but is greatly tedious (reimplementing the whole interface, exposing it, and rewiring), and sum types are right off the bat inapplicable.