News for hackers. Stuff that matters.
Re:(On | No) Syntactic Support for Error Handling by yz453 on Wednesday June 04, 2025 @12:50AM (#44177328)
Not OP. IMO the recent Java changes, including pattern matching (especially when using along with sealed interface), virtual threads (and structured concurrency on the way), string templates, are all very solid additions to the language.

Using these new features one can write very expressive modern code while still being interoperable with the Java 8 dependency someone at their company wrote 20 years ago.

Re:(On | No) Syntactic Support for Error Handling by tpm on Wednesday June 04, 2025 @04:35AM (#44178503)
fyi: string templates were just a preview and removed in Java 23
Re:(On | No) Syntactic Support for Error Handling by PaulHoule on Wednesday June 04, 2025 @09:57AM (#44180799)
For Java systems that I work on for my own account there is a lot of stuffing things like SQL queries into resource files so that I don't have to mess around with quotes and such.