2 ms·
> Being a statically typed language, you don't have something like Ruby's mixins to share code, nor do you have OO's interface inheritance. But you do, though.
by int_19h 8y ago
> Being a statically typed language, you don't have something like Ruby's mixins to share code, nor do you have OO's interface inheritance.
But you do, though. You have open object types, and you can write generic functions in terms of those types, which effectively serves as interfaces (or traits) in other languages.