Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Additional info, they predate Java, having made an appearance in CLU, Modula-3 and C++, before Java was invented.

I miss them in other languages every time I need to track down an unhandled exception in a production server.



>> People bitch about checked exceptions

> they predate Java, having made an appearance in CLU, Modula-3 and C++

Checked exceptions in C++? Can you force/require the call chain to catch an exception in C++? At compile time?


That was part of the idea behind them yes, as many things in WG21 design process, reality worked out differently, and they are no longer part of ISO C++ since C++17.

Although some want to reuse the syntax for value type exceptions, if that proposal ever moves forward, which seems unlikely.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: