4 ms·
> Go is heavily based on polymorphism Go has very limited polymorphic capabilities (implicit interfaces that have huge limitations). And struct embedding isn't
by spriggan3 11y ago
> Go is heavily based on polymorphism
Go has very limited polymorphic capabilities (implicit interfaces that have huge limitations). And struct embedding isn't composition. Now if you're talking about interface { } everywhere, sure, Go is as polymorphic as Javascript.
- skj 11y agoGo is also based on limitations. The job is to write programs that work, not to create little framework empires. I don't know why you claim that struct embedding isn't composition.