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

I like Rust's struct + traits approach, because they avoid inheritance and encourage composition. I am sure people have built bad workarounds though to do inheritance anyway.


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

Search: