~/talk

Pattern Matching in Java Deep Dive

Talkat GeeCON Prague 2023 · 2023-10-19..10-20· [java, compilers-and-language-design]
links:none on file
slides:none on file

Walks through what is actually usable now in JDK 21: record deconstruction patterns and pattern matching in instanceof and switch, plus scoping rules for binding variables and sealed types enforcing exhaustiveness. Notes null handling differences and that switches can throw a runtime exception when compile-time exhaustiveness differs from runtime values. Points out the underscore pattern is a preview feature, primitive-type patterns and a reconstruction expression for mutating-by-rebuilding records are work in progress, and a VS Code extension (NetBeans/JavaC-based) is published.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 3:05Pattern matching fundamentals and examples
  3. 12:34Pattern matching in if statements and loops
  4. 13:20Pattern matching in switch expressions
  5. 17:02Type test and deconstruction patterns
  6. 22:23Null handling in pattern matching
  7. 29:35JDK 21 features and preview updates
  8. 32:07Future pattern matching enhancements
  9. 36:22Custom deconstruction and reconstruction
  10. 41:01VS Code Java extension announcement
  11. 43:22Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.