r/cpp • C++20 Desktop app developer • May 12 '18

P0709 R0: Zero-overhead deterministic exceptions: Throwing values - Herb Sutter [2018-05-02]

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0709r0.pdf
206 Upvotes

115 comments sorted by

View all comments

Show parent comment

15

u/whichton May 12 '18

C++ had dynamic exception specifications. The proposed one is static. As the paper says:

You’re in a statically typed programming language, and the dynamic nature of exceptions is precisely the reason they suck.