2 ms·
To extend on this: application developers can actually guarantee it, because they control the compilation process, which is what decides if it aborts or not. L
by Groxx 3y ago
To extend on this: application developers can actually guarantee it, because they control the compilation process, which is what decides if it aborts or not. Libraries have less control / no guarantee.
- burntsushi 3y agoThat's right, but it doesn't give you a guarantee in every sense of the word. A panic during unwinding will still result in an abort.
- littlestymaar 3y ago> To extend on this: application developers can actually guarantee it, because they control the compilation process, which is what decides if it aborts or not. They can control that panic isn't compiled as abort, but even then, if there's a destructor that can panic, then if it panics during unwinding, it aborts. So even the app developer cannot guarantee to catch all panics.