3 ms·
I'm not familiar with Go. If my code performs several operations in a row, any of which could return an error, do I have to check the returned error value afte
by michaelt 14y ago
I'm not familiar with Go.
If my code performs several operations in a row, any of which could return an error, do I have to check the returned error value after each one?
For example if performing file or network I/O?
- dscrd 14y agoPerhaps depending on how important it is for that piece of code to be flawless, but generally yes. The upside of all that is that you can craft a piece of code to be practically flawless, since you know how the libraries you are using are supposed to break if they break.