Good read. Thanks for sharing!
this post was submitted on 03 Jul 2023
5 points (100.0% liked)
Rust
6009 readers
2 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 1 year ago
MODERATORS
I still believe inheritance can be a good solution when modeling a real taxonomy-based problem.
As I'm fond of saying, the right choice given two extremes is usually in the middle.
I wish Rust had inheritance, if only to make modeling taxonomy-based structures (like GUIs) easier. But given the choice between a good composition system and a good inheritance system, without being able to have both, I'll take the good composition system