3 ms·
> Oh and calling an interface a "trait" does not change its fundamental nature either. Traits are a form of ad hoc polymorphism and behave closer to Haskell's
by pdpi 9y ago
> Oh and calling an interface a "trait" does not change its fundamental nature either.
Traits are a form of ad hoc polymorphism and behave closer to Haskell's typeclasses than they do to interfaces and subtype polymorphism.