Effective Pattern Matching in Java
Автор: JChampions Conference
Загружено: 2026-01-22
Просмотров: 200
Since Java 14, the Java switch and instanceof statements have been enhanced, in multiple phases, to support pattern matching and a "data-oriented" programming style. In this presentation, I explore when this programming style is beneficial, and why. (Spoiler: Not as often as one might think from Oracle's presentations, but when it does apply, it is truly useful.) I describe the syntax of pattern matching, as it has evolved, and show how it will be further enhanced in upcoming versions of Java. I warn of corner cases of the switch syntax where modern usage clashes with legacy behavior. I conclude with a set of rules when to use pattern matching and "data orientation" now, how to prepare for future enhancements, and when to stay away.
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: