4 ms·
Also, unless things have changed significantly in the past year or so (since I've last really used Rust), there are significant differences between Rust traits
by dbpatterson 12y ago
Also, unless things have changed significantly in the past year or so (since I've last really used Rust), there are significant differences between Rust traits and Haskell type classes. You can have collections of heterogeneous types that all share the same trait, which is not true with type classes. Most descriptions I've seen say that they are more of a hybrid of Java interfaces and Haskell type classes.