Hacker News new | ask | show | jobs
by assbuttbuttass 998 days ago
Go has type classes, they're called interfaces
1 comments

Not the same, because with an interface, the methods defined for the struct must match the interface.

With type classes you can bridge that gap because the implementation of the struct for a specific type class can be defined anywhere.