|
|
|
|
|
by 112233
602 days ago
|
|
Exceptions in C++ are the closest we have to the implementation of the COME FROM proposed in "A Linguistic Contribution to GOTO-less programming". It takes statically typed C++ and turns it into dynamically typed language.
Throwspec is dead, anything can throw, except when noexcept, then nothing can throw. It is next to impossible to reason about control flow. Dynamic linking opens whole new dimension of this wormcan. Do you handle exceptions in your constructors? How about constructors of your function arguments? Not to mention the non-trivial cost in code size, that makes exceptions a non-option for embedded use. |
|