|
|
|
|
|
by jrockway
1306 days ago
|
|
Hiding errors saves less than a second of typing, at the cost of making every five minute bugfix a one day bugfix. Don't do it. You can't build your own programming language inside of Go. If you absolutely cannot mentally handle functions returning an error and you having to type "if err != nil { fix the problem }", you really need to find a different programming language. But, errors happen all the time, and handling them correctly is the difference between an unreliable piece of garbage that randomly fails and software you and your users can trust. There is, unfortunately, no automation around making software reliable. |
|