Maybe not Python? But Python is slow regardless.
Maybe not Python? But Python is slow regardless.
But C++ does not provide a stack trace.
I’d simply add that most people greatly underestimate how expensive exceptions are, even in C++.
Which makes exception in C++ a very, very bad idea!
My reaction to 'the test fails because map::at threw an exception': stupid STL!!
A core dump would be so much easier to analyze.. Gdb's 'catch thow' is wonderful (well, it is after I fixed the part of our codebase which use exceptions as a control flow mechanism)
> A core dump would be so much easier to analyze..
Uncaught exceptions call terminate(), which by default calls abort(), which generates a core dump. So if you want a core dump, just avoid catching the exception.
Also works in C.