Re:Building Go Programs with Nix Flakes
by sidlls on Wednesday December 14, 2022 @08:53PM
(#33994013)
Accidental implementation of an interface is a footgun at best. These are contracts that should be explicit and deliberate. “Write” doesn’t always mean “I/O,” for example, but if you have data for which “Write” is a perfectly reasonable method name and isn’t I/O you’re inviting eventual disaster by implementing a method with the same signature as oi.Write.
[ Parent
| on HN ]
There are no comments on this comment yet.