4 ms·
How would a "panic" differ from an "exception"? Keep in mind what happens in C++ if you do not catch an exception.
by bregma 5y ago
How would a "panic" differ from an "exception"? Keep in mind what happens in C++ if you do not catch an exception.
- jeffbee 5y agoExactly my point.
- loeg 5y agoIf you allow exceptions, people try to catch them.
- mgaunard 5y agoyou'd catch and handle the exception at the adequate point inside your subsystem. The same argument could be made with return values: what happens if you don't handle them and just panic on them.