3 ms·
A minor nitpick, but checked exceptions are a feature entirely unique to Java (maybe also one or two JVM languages?), so it really shouldn't be discussed so oft
by tsimionescu 2y ago
A minor nitpick, but checked exceptions are a feature entirely unique to Java (maybe also one or two JVM languages?), so it really shouldn't be discussed so often when touching this topic.
- shepherdjerred 2y agoThat's fair! My point is that being forced to check exceptions can be beneficial. Go does not have any mechanism for this. If you want to use a Result/Optional type I think that is way better than exceptions. As long as the compiler can enforce that you are acknowledging (or explicitly ignoring) both the happy and error cases. Ideally the error case for the Result/Optional type would also have an attached stack trace.