3 ms·
But you can do equally horrible inheritance-y things with embedded structs.
by Zanfa 2mo ago
But you can do equally horrible inheritance-y things with embedded structs.
- metadat 2mo agoYes, though it's non-idiomatic and in my experience, rare to encounter in the wild for anything you'd actually want to use.
- saturn_vk 2mo agoThat’s composition, and it’s not really the same as inheritance
- EspressoGPT 2mo agoThat's right, embedded structs in Go are far less common than inheritance in Java though.