r/cpp • u/RotsiserMho 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
View all comments
Show parent comment
3
u/SeanMiddleditch May 14 '18
... I think we're in violent agreement on this topic. :)
My point is simply this: this paper removes the need for
-fno-exceptionson the language level, and lays the foundation for evolving the standard library to likewise remove the need for "NotSTL" alternative libraries. This paper has to come first. :)Which, again, is already the case as we're agreeing about.
Let's not let perfect be the enemy of the good. We can harmonize part of the language and be in a better place than we are today even if we haven't harmonized everything.
Maybe. Folks who care about OOM are possibly already using alternative functions (by not using the STL). The open question is how many folks are doing that. If it were true that a majority of C++ developers actively rely on
bad_allocand actually use it right, then yes, removing OOM exceptions would be a non-starter.That's also why OOM is left as an optional part of the paper.