4 ms·
I didn't claim it is impossible either :) I kinda agree. Still, for an imperative language I think it's a tool I'd like to have in my toolbox, or at least it n
by norswap 7y ago
I didn't claim it is impossible either :)
I kinda agree. Still, for an imperative language I think it's a tool I'd like to have in my toolbox, or at least it needs a compelling alternative, which I don't think Go has (1). Of course there are many cases in which you can do perfectly without.
(1) I know it has composition through struct embedding, but not real inheritance: a method delegated to the embedded struct can't call back a method on the embedder automatically. If you do know of some other means in which Go can replace this kind of inheritance, I'd be happy to hear about it.