Follow

Pattern matching in switch will have its third preview in 19. It comes with two changes:

* guarded patterns (`&&`) are out; `when` clauses are in
* `null` needs to be handled by a specific `case null`

More in the latest Inside Java Newscast:
youtu.be/ENX5kHblFlY

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!