-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc: We can metion the Java 21's new switch statement. #979
Comments
When I execute
|
|
But it can't work with Java 17. |
@duobei Yes, in Java 17 , you need add opens, something like :
|
I think we have a plugin |
It's experimental in jdk 17? |
#1011 was merged |
Motivation:
When handle an actor's messages, in Scala ,we can use the pattern matching, but now with JDK 21, we can use the new fancy :
style, and which will leverage the
typeSwitch
and maybe better performance vs theif else
.The text was updated successfully, but these errors were encountered: