Java 14 - Switch Expressions

preview_player
Показать описание
Coverage of the Java 14 Switch Expressions feature (JEP 361).
Summary:
01:09 - Motivation (pre-Java 12 switch statements)
03:25 - Multiple constants per case
04:45 - Arrow labels
06:10 - Switch expressions
06:10 - Yielding a value
09:00 - Exhaustiveness
Рекомендации по теме
Комментарии
Автор

Any more elegant way to handle "do nothing" case other than using an empty block or yielding an ineffectual value just because we have to yield some value ?

benzflynn