Hacker News new | ask | show | jobs
by VirusNewbie 996 days ago
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.