Err = Nil Sucks (Or Does It)(youtube.com) |
Err = Nil Sucks (Or Does It)(youtube.com) |
I also think most of the criticism of Go error handling is that it's a clunky and noisy implementation of the "error values" idea. Rust does the same, but instead of a (value, error) tuple they use enums that clearly discriminate between the two, and aren't afraid of providing more concise syntax for the common 're-throw' case.