3 ms·
> A side note since I also hate exceptions: did you know that the most common (and accepted?) way to communicate exceptions in C# is via doc comments written ma
by layer8 3y ago
> A side note since I also hate exceptions: did you know that the most common (and accepted?) way to communicate exceptions in C# is via doc comments written manually by humans. Good luck statically analyzing that!
Java having checked exceptions is the primary reason I’m sticking with that language. Many libraries don’t use them, unfortunately, but an application that embraces them systematically is bliss in terms of error handling, because at any place in the code you always know exactly what can fail for what non-bug reasons.
- sirwhinesalot 3y agoThey had the right idea but implemented it poorly (overly verbose to work with, as is much of java). The end result were people taking too many shortcuts.
- d0mine 3y agoIt is funny: usually, Java is used as a prime example why checked exceptions are bad.