|
|
|
|
|
by spriggan3
3745 days 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. |
|
I don't know why you claim that struct embedding isn't composition.