3 ms·
So it is good that most Rusts introductions tell you that you should favor composition over inheritance in multiple places: https://rust-for-c-programmers.com/
by atoav 10mo ago
So it is good that most Rusts introductions tell you that you should favor composition over inheritance in multiple places:
https://rust-for-c-programmers.com/ch20/20_3_rust_s_approach_traits_composition_and_encapsulation.html#203-rusts-approach-traits-composition-and-encapsulation https://rust-for-c-programmers.com/ch20/20_3_rust_s_approach...
If Rust pushes any concept it is the use of traits:
https://rust-lang.github.io/book/ch10-02-traits.html https://rust-lang.github.io/book/ch10-02-traits.html