3 ms·
Orphan instances arise when the implementation of the interface is in neither the same package as the package that defines the type nor the package that defines
by pcwalton 11y ago
Orphan instances arise when the implementation of the interface is in neither the same package as the package that defines the type nor the package that defines the interface. I'm defending the latter (which Go's rules rule out), not orphan instances.