Two OpenJDK draft proposals would enhance the expressiveness of pattern matching in Java and boost data-oriented queries, potentially previewing in Java 17. Java programming is set to be enhanced with ...
Allowing developers to handle an exception from the selector in switch with a case in the switch block would make switch more usable for pattern matching, the proposal says. The readability, ...