News for hackers. Stuff that matters.
Re:Juice – Oberon JIT browser plugin (1996) by pjmlp on Friday February 02, 2024 @12:57PM (#39231855)
I have been doing Java projects since 2006, and as mentioned on my edit you might have missed when replying, pattern matching, try and ? are just another way to package checked exceptions in a different coating.
Re:Juice – Oberon JIT browser plugin (1996) by cmrdporcupine on Friday February 02, 2024 @01:00PM (#39231902)
Yes and no. There's a non-local-control aspect to exceptions that's a bit different from explicit return or ? in that it's explicit in the text of the program rather than in the signature of the method. But yes, the compiler will stop you in either case, so that's fine.

But there's no guarantee that someone under you didn't go and pull out a RuntimeException on you.