OpenJDK company blog

JEP 325: Switch Expressions

Extend the switch statement so that it can be used as either a statement or an expression, and that both forms can use either a "traditional" or "simplified" scoping and control flow behavior. These changes will simplify everyday coding, and also prepare the way for the use of pattern matching (JEP 305) in switch …
Points
111
HN comments
75
Submissions
1
Cited by
3 commenters

Programming LanguagesSoftware Engineering2018

On Hacker News

SubmittedTitle on HNPointsComments
Jan 19, 2018JEP 325: Switch Expressions by jcdavis11175

Cited in comments

Linked from 3 Hacker News comments by 3 different people, from Sep 2018 to Feb 2019.

Most recent:

Search every comment that links here →

More from OpenJDK

All 11 posts →

Related posts from the same era