3 ms·
I don't think interface segregation can be simply dismissed as just 'another illustration of late 90s programming language design' (implying there's something w
by tepidandroid 9y ago
I don't think interface segregation can be simply dismissed as just 'another illustration of late 90s programming language design' (implying there's something wrong with late 90s language design...).
The clearest benefit is the decoupling of dependencies which leads to more testable, extensible and maintainable code. That any struct can simply implement the desired behaviour to implicitly satisfy externally defined interfaces is an extremely powerful notion.
Of all the things to complain about in Go, interfaces seem like a strange bone to pick.