top | item 45805128

(no title)

egorelik | 3 months 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.

discuss

order

schneems|3 months ago

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