2 ms·
If you meant that it would throw or return an error on malformed input, I totally agree. You must always handle errors that your calls might return, and especia
by mikeash 10y ago
If you meant that it would throw or return an error on malformed input, I totally agree. You must always handle errors that your calls might return, and especially when those calls are given anything derived from outside input.
- s_q_b 10y agoYes, generally, and specifically that failure to handle this type of error can cause all sorts of plague, pestilence, and application compromise.
- mikeash 10y agoIndeed, forgetting to check for errors is a great way to cause all sorts of terrible bugs. That's one reason I'm starting to become a fan of checked exceptions and result types.