3 ms·
Watch out for hype that golang authors and supporters claim without properly backing it up, there's quite a bit of it. There are other languages that have bett
by apta 8y ago
Watch out for hype that golang authors and supporters claim without properly backing it up, there's quite a bit of it.
There are other languages that have better support for composition, while still maintaining support for inheritance (e.g. Kotlin). Inheritance has its uses, as evident by the fact that Rust is considering adding support for inheritance (e.g. writing GUIs).
- steveklabnik 8y agoI’m not sure what you mean by “rust is considering adding support for inheritance”; as far as I know that’s not true. Did I forget something? Do you have a link to the proposal?
- apta 8y agoI came across it a while ago, I think it was mentioned by pcwalton or someone if I'm not mistaken, specifically citing writing GUI code as a rationale. That being said, Rust (and Java, Kotlin, Scala, C#, etc) have default interface method implementations which might alleviate some of the need for full blown inheritance, unlike golang's interfaces.