Re:Current hardware trends make C++ exceptions harder to jus...
by TheMonarchist on Tuesday February 22, 2022 @06:23PM
(#30435303)
https://en.cppreference.com/w/cpp/io/basic_ios/exceptions
[ Parent
| on HN ]
Re:Current hardware trends make C++ exceptions harder to jus...
by YATA0 on Friday February 25, 2022 @01:49AM
(#30464346)
That is manually throwing an exception if the file doesn't exist.
C++ stdlib does not throw an exception if a file does not exist. I agree with this philosophy because files not existing isn't an exceptional case.