Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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...

If Rust pushes any concept it is the use of traits: https://rust-lang.github.io/book/ch10-02-traits.html



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: