News for hackers. Stuff that matters.
Re:Upcoming Features in Go 1.18 by ladberg on Tuesday November 09, 2021 @02:24PM (#29166209)
I don't see how those are mutually exclusive. You could do something like:

  x, err := f(); if err != nil return fmt.Errorf("More context -> %s", err)
(I'm not attached to that specific syntax, it's just an example of a hypothetical one-liner)

There are no comments on this comment yet.