4 ms·
Go has type classes, they're called interfaces
by assbuttbuttass 3y ago
Go has type classes, they're called interfaces
- VirusNewbie 3y agoNot 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.