4 ms·
Golang's interfaces are a half-baked feature, not so different from the rest of the language. What they basically were aiming for is called "structural typing".
by apta 8y ago
Golang's interfaces are a half-baked feature, not so different from the rest of the language. What they basically were aiming for is called "structural typing". However, other languages that have that feature have a much better approach, without sacrificing readability, functionality, or discoverability, and ending up causing bugs in the standard library like golang did.