|
|
|
|
|
by vl
1073 days ago
|
|
The biggest go problem in practice is ironically omitted in both blog posts: Verbosity of error handling! There should be a shorthand for returning if last ret value is non-nil in one line. Otherwise all you code is littered with: if err != nil {
return err
}
and it makes it four times as long and way less readable as a result. This needless verbosity really reminds me of Java.Also, go fmt is not opinionated enough! There really should be one way to line break and max width. Right now you can't rely on it to magically format it as it "should be" and fire-and-forget when typing. |
|