7 ms·
These three lines have made my life easier.
by fithisux 11y ago
These three lines have made my life easier.
- incepted 11y ago... and your code more fragile. You can't have your lunch and eat it too: if you want robust code, you -- the developer -- need to spend some time thinking about how you manage your errors. Go makes it all too easy to sweep those under the rug.
- cdelsolar 11y agoNo it doesn't. You need to handle every error or your program will panic and crash. You are forced to think of and handle every error by the if err != nil construct.