|
|
|
|
|
by nunez
1058 days ago
|
|
I'm surprised the author didn't talk about error handling in Go. That is, by far, my biggest pet peeve with the language. Most languages have try/catch patterns, but Go opted for multivariate returns and a discrete error type...without pattern matching! At least 20% of Golang code I look at is the if err != nil pattern, which is a crazy amount of repetitive boilerplate. I don't think the must pattern is a good alternative either in many cases. |
|