> Yes, but hardly anybody uses that part of the language. We tend to stick with modules and variations over them.
You can have inheritance via polymorphic variants: see Garrigue's `Code reuse through polymorphic variants`.
Re:Why I’m dropping Rust
by loup-vaillant on Sunday September 11, 2016 @04:25PM
(#12475490)
I have never used polymorphic variants… Too lazy to learn.
Yes, but the language is immutable and eager by default. That makes circular references a chore.
> and supports class based inheritance
Yes, but hardly anybody uses that part of the language. We tend to stick with modules and variations over them.