News for hackers. Stuff that matters.
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.
Re:Rust 1.17 by arithma on Monday May 01, 2017 @07:16AM (#14236766)
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.