Re:Why Checked Exceptions Failed
by crabbone on Saturday July 15, 2023 @12:34PM
(#36738493)
Java is not the only language that has checked exceptions. C++ has them too, for example, but thanks god virtually nobody uses them in C++.
[ Parent
| on HN ]
Checked exceptions (i.e. "dynamic exception specification") were deprecated in C++11 and removed in C++17.
C++ never had checked exceptions. It had dynamic exception specifications but they were a very different (and useless) thing as they were runtime checked not statically.
I wish C++ had checked exceptions.