Re:Inheritance Often Doesn't Make Sense
by kaoD on Saturday March 17, 2018 @11:35AM
(#16607400)
I think traits (as I know them) are still nominal subtyping. E.g.: a Rust struct implementing a next() method does not implement the Iterator trait even if they are structurally equivalent. You have to explicitly implement the trait.
[ Parent
| on HN ]
There are no comments on this comment yet.