Should we add an panic interface that reports the error via the panic handler but unconditionally aborts? #34
Description
Right now panic behavior is defined by binary authors and is applied globally for an application. This can mean either all panic!
s abort the application or that all panics unwind the application. This design can cause issues for library authors where they need to assume that any panic they invoke could potentially start unwinding, requiring library authors to plan for exception safety. They can work around this by directly aborting the application with std::process::exit
, but this means they're no longer leveraging the same panic reporting logic that the rest of the application is.
The error handling project group should look into adding an interface for panics that always causes an aborting panic, even if the rest of the application has been compiled with panic = unwind
.