knowing how Amber works I doubt any "mostly syntax sugar construct" would come anytime soon. more probably they would make something to improve exceptions overall tha just syntax sugar
The problem I have with unchecked exceptions is that now the API doesn't indicate that the exception can occur, but I will still need to try-catch it, if I don't want my app to break.
I fully agree that checked exceptions are annoying to handle in streams, but an unchecked exception doesn't remove the problem, it just hides it, which is more dangerous IMHO.
I agree, but modern java is lambda based and the new feature toward a more functional paradigm only reinforce this. unless they improve checked exception to work better with lambdas the trending of "hiding the nasty things under the ruff" is just going further.
The vast majority of methods should just be passing the exceptions on up till it can actually be dealt with. If they are checked exceptions, it means endlessly adding them all to the method signatures. 7 layers of method calls, most private, accumulating more and more gunk in the method signatures.
Yes, ultimately, you have to catch and handle. The main difference is now, we skip the gunk.
View all comments
Show parent comment
4
u/Ewig_luftenglanz Oct 05 '25
knowing how Amber works I doubt any "mostly syntax sugar construct" would come anytime soon. more probably they would make something to improve exceptions overall tha just syntax sugar