Re:Checked exceptions: Java’s biggest mistake (2014)
by dllthomas on Monday September 14, 2020 @03:49PM
(#24474313)
> I would assume that this has the same debug issues as omitting the stack trace.
I don't expect so. If I "forget to handle" an optional, I get an error at compile time pointing at the lines in question. If I forget to handle an exception with an omitted stack trace, IIUC, I am told at runtime that there's an error somewhere in my program. It's much easier to debug the former.
I don't expect so. If I "forget to handle" an optional, I get an error at compile time pointing at the lines in question. If I forget to handle an exception with an omitted stack trace, IIUC, I am told at runtime that there's an error somewhere in my program. It's much easier to debug the former.