|
|
|
|
|
by drucken
4858 days ago
|
|
Most people just miss the common C++ idioms that solve many of the exception issues in very elegant ways (and give a lot of benefits at the same time). ... and the remaining people realise that use of exceptions in C++, 1. almost always creates a trade-off in performance for strong-exception safety guarantees 2. requires special and strong control of side effects throughout the code base, even when there is minimal benefit 3. increases compile times and resource pressure 4. encourages less knowledgeable developers to inappropriately throw exceptions or make poor attempts to recover from them 5. contain some of the least portable platform semantics and handling. C++ exceptions contain far greater costs and consequences than many programmers realise. For anything other than testing frameworks, it is debatable that they are worth any benefit at all compared to the alternatives. |
|