3 ms·
Why would it? If you care enough to check you probably also care enough not to discard the data you attempted to write.
by turminal 4y ago
Why would it? If you care enough to check you probably also care enough not to discard the data you attempted to write.
- dllthomas 4y agoI was referring to checking because "you should check" when you don't actually care enough to structure your program around not losing the data. It's easy to to check and emit a diagnostic, it's harder to make sure you have collected the data you've written to a file descriptor and have something sensible to do with it if the close fails.