Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How to Use Go Interfaces. Parent comment
If it has some implementations and some without, it's an interface with default implementations.
See how Kotlin does it, it's really nice and consistent, and you never need to agonize over the decision of picking a class or a struct.
There are no comments on this comment yet.
If it has some implementations and some without, it's an interface with default implementations.
See how Kotlin does it, it's really nice and consistent, and you never need to agonize over the decision of picking a class or a struct.