See the example with the `?` operator: https://github.com/borgo-lang/borgo?tab=readme-ov-file#error...
The main benefits of a Result type are brevity and the inability to accidentally not handle an error.
The main benefits of a Result type are brevity and the inability to accidentally not handle an error.
A funny drawback of the current Go design that a Result type would solve is the need to return zero values of all the declared function return types along with the error: https://github.com/golang/go/issues/21182.