Semicolons might help to handle errors like this:
func f2() error {
err := f1(); if err == nil { return nil }
// ...
}
Pros:
- The code is very explicit (that means that every reader will understand what is happening in the code)
Semicolons might help to handle errors like this:
func f2() error {
err := f1(); if err == nil { return nil }
// ...
}
Pros: