3 ms·
The fact that a function can fail is not an implementation detail, it should be part of the signature of the method. And if the method can suddenly fail in a n
by hota_mazi 7y ago
The fact that a function can fail is not an implementation detail, it should be part of the signature of the method.
And if the method can suddenly fail in a new way, that signature should change so that callers of that method can adjust to the new failure case.
Checked exceptions force you to consider error cases, there's nothing stupid about them.