3 ms·
No it won't: fmt.Println("foo") You're not forced to handle the error. Not to mention more obscure cases like a, err1 := foo() if err1 != nil { r
by apta 7y ago
No it won't:
fmt.Println("foo")
You're not forced to handle the error. Not to mention more obscure cases like
a, err1 := foo()
if err1 != nil { return err1 }
b, err2 := bar()
if err2 != nil { return err1 } // bug