Re:Announcing Rust 1.20
by saghm on Thursday August 31, 2017 @05:36PM
(#15144163)
Depending on the language, interfaces can be a lot less powerful than traits. Traits can have default implementations for some methods (meaning you don't have to explicitly implement all of them), and in some cases they can be completely derived automatically. They're really more similar to Haskell's typeclasses than traditionally OO interfaces.
[ Parent
| on HN ]
There are no comments on this comment yet.