3 ms·
In a way, yes. Other similar language features include traits in Rust and typeclasses in Haskell, in my understanding.
by steveklabnik 11y ago
In a way, yes. Other similar language features include traits in Rust and typeclasses in Haskell, in my understanding.
- Sharlin 11y agoAlso Scala's view bounds where a type is accepted if it's implicitly convertible to the required interface.