News for hackers. Stuff that matters.
Re:An Honest Review of Go (2025) by iamcalledrob on Sunday January 11, 2026 @08:36AM (#46575645)
Sidenote: if you really need compile-time safety for errors, you can always use your function signature to achieve this.

  func DoThing(onFoo func(), onBar func()) { ... }
It's a bit horrible, but does solve for the rare occasion when certain scenarios must be handled, and makes it clear that the change is a breaking one. Personally never needed this though.

There are no comments on this comment yet.