Quick dive into type patterns, which were standardized in #Java16: 1. why do we get them? 2. how do they work? 3. what are use cases now? 4. what are use cases in the future? This thread is the short form - long form: nipafx.dev/java-type-patt… 1/8
1
8
21
0
3
1. Why? While rare in most code, `instanceof`-and-cast chains are: * tedious (repeating types, so many parens!) * obfuscating (lots of characters) * error-prone (need to keep type-checks and casts in sync) Java should do better. 2/8