Record Patterns - Going Beyond Records - A Deep Dive
Presented at EclipseCon 2023 in Ludwigsburg, Germany by Manoj N Palat (IBM).
Record Pattern feature is expected to be a standard feature in Java 21, which is an LTS Release. This is build on top of Records, which have been a standard feature for some time and is gaining popularity. Alongwith Record Patterns, Switch Pattern is also expected to be standard. Switch Pattern is a sort of binder for providing Record Pattern. Given this info, it can be safely assumed that Record Pattern feature is going to be widely used with Java 21 version onwards. Hence, it would be great to understand the Record Pattern feature in detail.
Talk will discuss Record Pattern feature in-depth. Plan is to give an introduction to Records in the inital few minutes so as to bring audience not familiar with Records to the same page, and then will delve into the Record Patterns. Talk is not just about discussing what is right in Record Patterns, would also discuss error scenarios that would help the attendees understand this feature more and use it accordingly. Record Patterns are expected to have some enhancements in future as well and will provide a peek into the same if time permits. Will also discuss some possible scenarios of code where the Record Patterns can be used.
Though the talk is deep dive, attendees are expected to have only Java Programming experience. Attendees are not expected to have used Records since that will be covered initially. After attending the session, attendees would have a deeper understanding of Record Patterns and would have an idea as to when and how to use them in their programming tasks.