JDK Language Feature Preview in Action: Switch Expressions
JEP 12 ["Preview Language and VM Features"] is described on its main page as follows: A preview language or VM feature is a new feature of the Java SE Platform that is fully specified, fully implemented, and yet impermanent. It is available in a JDK feature release to provoke developer feedback based on real world use; this may lead to it becoming permanent in a future Java SE Platform. JEP 325 ["Switch Expressions (Preview)"] is, as the parenthetical in its title suggests, a " preview feature ." As such, JEP 325 provides a high-visibility early opportunity to use the JEP 12-outlined process to preview a new language feature. The recent messages on the OpenJDK jdk-dev mailing list provide evidence of the usefulness of JEP 325 in helping Java developers understand the implications of JEP 12 and the "preview feature" process. The discussion surrounding the "preview feature" nature of switch expressions (JEP 325) started with Mark ...