Remix.run Logo
egorelik 3 days ago

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.

schneems 3 days ago | parent [-]

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