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

As far as I'm aware, Rust's trait system is more closely related to Haskell's type class system than to actual object-oriented programming. As a type class system, it is fine; it is a different mindset than classic OOP. Rust happens to also use this same system for something more closely resembling traditional objects, but this is much more restricted than either.


As a rubyist: traits are strictly typed ducktyping. I love them.




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

Search: