News

The switch statement begins with reserved word switch and continues with a selector expression that selects one of the subsequent cases or the default case to execute.
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.