2 ms·
Lazy programmers that skip error checks or count keystrokes as a something major are probably at the wrong job. Either an error can happen then it must be hand
by Matthias247 10y ago
Lazy programmers that skip error checks or count keystrokes as a something major are probably at the wrong job.
Either an error can happen then it must be handled - no matter how likely it is. Or it can't happen, then there's no need to handle it. The rare exceptions are functions where errors are indicated in the type signature but in reality won't occur, e.g. because the error return value will only be used in other implementations of an interface or because a precondition that guarantees that there will be no error was checked before. And for this cases you could still do something like: _ = functionThatReturnsError()
This is the approach that you e.g. have to follow in F#.