News for hackers. Stuff that matters.
Re:Why Checked Exceptions Failed by spreiti on Saturday July 15, 2023 @09:59AM (#36736819)
FYI: With Java 21 (2023/09/19) this is finally possible.

Relevant JEPs:

- 441: Pattern Matching for switch

- 440: Record Patterns

- 409: Sealed Classes

- 395: Records

It is kind of similar to Scalas version of pattern matching with case classes.

Re:Why Checked Exceptions Failed by isbvhodnvemrwvn on Saturday July 15, 2023 @02:21PM (#36739578)
And it won't get adopted any time soon due to backwards compatibility and existing code. Anybody who wanted to use it used vavr at this point.