Comment on Discussion: Reduce error handling boilerplate in Golang using '?'parentComments−kortex1yThat is exactly how go usually works with error handling though. func mayfail() error { if snafu { return errors.New("oops") } else { return nil} } err := mayfail() if err != nil { handle } Same as `mayfail() ? handle : happypath` would behave with lazy evaluation.
Comments
That is exactly how go usually works with error handling though.
Same as `mayfail() ? handle : happypath` would behave with lazy evaluation.