by thatswrong0 · 2y ago · 0 comments
For example:
err := doSomething()
if err != nil {
return nil, err
}
err = doSomethingElse()
if err != nil {
return nil, err
}
// Oops unhandled
err = doSomethingElseEntirely()
// A bunch of other stuff..
return nil, nil
Would much prefer "Either" with pattern matching, or something else that actually forces you to do something.No comments yet.