3 ms·
When dealing with go errors I like to give them proper names. barErr, fooErr. In the case of the article it fixes reordering (not that you do that a lot in real
by furstenheim 5y ago
When dealing with go errors I like to give them proper names. barErr, fooErr.
In the case of the article it fixes reordering (not that you do that a lot in real code).
In real code it makes unhandled errors a compile error, because the variable is not used.
- doctor_eval 5y agoThat’s a great idea. I’m going to try that.