News for hackers. Stuff that matters.
Re:Building Go Programs with Nix Flakes by silisili on Wednesday December 14, 2022 @04:29PM (#33990875)
Agreed on most points, but why the distaste for implicit interfaces? I find myself really, really liking that feature.
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.