Comment Comment by funnymony > important failure that can't be dismissedBut importance of the failure is determined completely by the program, not the library.Grep fails to open a file for reading -> message the user and exitNuclear reactor controller fails to read important a file -> initiate reactor shutdown or something.If file read is critical, you have to handle failure no matter what the interface is. Because you know that disk can fail. parent funnymony 3 years ago
But importance of the failure is determined completely by the program, not the library.
Grep fails to open a file for reading -> message the user and exit
Nuclear reactor controller fails to read important a file -> initiate reactor shutdown or something.
If file read is critical, you have to handle failure no matter what the interface is. Because you know that disk can fail.