News for hackers. Stuff that matters.
Re:Problems with C++ exceptions by _dky on Wednesday November 12, 2025 @10:32AM (#45901428)
If C++ had a contract on what exceptions a function can throw with compile time check to enforce caller catches those exceptions, would it make it better?

Guess Java does that, not much experience in Java here.

Re:Problems with C++ exceptions by rerdavies on Thursday November 13, 2025 @11:23PM (#45923830)
Java does it. It is a horrible horrible feature. C# used to do it. But they decided it's a horrible horrible feature, and removed it.