2 ms·
It's bad to just ignore errors. You could immediately terminate, perhaps after printing an error-message to stderr. Depending on the program, this might be bett
by MaxBarraclough 6y ago
It's bad to just ignore errors. You could immediately terminate, perhaps after printing an error-message to stderr. Depending on the program, this might be better than continuing on with a broken output stream.
In C++ you can have iostream throw on error, avoiding the problem of missing manual checks.