10 ms·
Excellent example. Let me point out that Go's approach to inheritance ("embedding") doesn't suffer from the problem you illustrated. A method on the embedded ty
by 37ef_ced3 5y ago
Excellent example. Let me point out that Go's approach to inheritance ("embedding") doesn't suffer from the problem you illustrated. A method on the embedded type can't call a method on the type into which it is embedded. Go's approach to inheritance is a big productivity win, and it's easy to understand