Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Announcing Rust 1.20. Parent comment
Traits are a form of ad hoc polymorphism and behave closer to Haskell's typeclasses than they do to interfaces and subtype polymorphism.
There are no comments on this comment yet.
Traits are a form of ad hoc polymorphism and behave closer to Haskell's typeclasses than they do to interfaces and subtype polymorphism.