3 ms·
I see your point and I will consider it. Thanks for the discussion. What's a language that does exceptions just right for you?
by kaoD 8y ago
I see your point and I will consider it. Thanks for the discussion.
What's a language that does exceptions just right for you?
- wvenable 8y agoC#/C++ do exceptions fine. However, it's more useful to point out the language that does exceptions all wrong: Java. I feel like the current anti-exception sentiment is mostly due to programmers first or major experience with exceptions is checked exceptions in Java. If I had to choose between checked exceptions and well typed error propagation, I'd choose the latter hands down. Checked exceptions have all the disadvantages of error returns and none of the advantages. This meshes with my point about where the error concerns are; Java requires you to be very concerned about what errors are thrown at every method definition and call. But C#, which is a very similar language, doesn't. In C#, you only have to be concerned about where and what errors you can handle.