News for hackers. Stuff that matters.
Re:Go: What We Got Right, What We Got Wrong by bb88 on Friday January 05, 2024 @01:59PM (#38883129)
I think you're missing the point here.

Duck typing with python (e.g.) makes it easy to mock a class. One can subclass a Java class to make a mock, etc.

One can't do that in golang unless it's through an interface which then decouples tightly coupled code because [golang reasons].

There are no comments on this comment yet.