News for hackers. Stuff that matters.
Re:How to Use Go Interfaces by tepidandroid on Tuesday March 20, 2018 @02:18AM (#16626364)
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.

There are no comments on this comment yet.