New candidate JEP: 361: Switch Expressions (Standard)
Gavin Bierman
gavin.bierman at oracle.com
Fri Sep 27 16:45:16 UTC 2019
Please note that we are considering making this a permanent feature, so this is your last chance to provide substantive feedback based on any new experience you may have had with this feature.
A new, draft language spec for JEP 361 (Switch Expressions) is available at:
http://cr.openjdk.java.net/~gbierman/jep361/jep361-20190927/specs/switch-expressions-jls.html <http://cr.openjdk.java.net/~gbierman/jep305/jep305-20190918/specs/patterns-instanceof-jls.html>
This is identical to the version made available for JEP354, apart from some cosmetic changes around terminology following some feedback.
[For spec nerds: The primary change is that what was previously called a "switch labeled rule" is now called, more simply, a "switch rule”. “Switch labeled expression” is now a “switch rule expression”, “switch labeled block” is now a “switch rule block” and a “switch labeled throw statement” is now a “switch rule throw statement”.]
All feedback welcomed!
Gavin
> On 25 Sep 2019, at 23:32, mark.reinhold at oracle.com wrote:
>
> https://openjdk.java.net/jeps/361
>
> - Mark
More information about the amber-dev
mailing list