Here are five things you should know about pattern matching in Java that are more general than type patterns with `instanceof`: 1. goals 2. terminology 3. scoping 4. reassignments 5. combinations This thread is the short form - long form: nipafx.dev/java-pattern-m… 1/10
2
8
25
0
8
NB: I use type patterns (in #Java16 - we know them), destructuring patters (in the works - we can make guesses), and regex patterns (I made them up) as examples - don't expect the latter two to ever work, at least not as presented here. 2/10
@nipafx I really enjoyed this, even though I had already read Brian’s design doc. Then I read the whole thread at amber-spec-experts and loved the discussions and insights!