Re:Java record pattern matching in JDK 19
by hn_throwaway_99 on Saturday May 14, 2022 @02:37PM
(#31380941)
It's not just a simple cast, but I should have used the correct term which is "control flow analysis". It's not just redefining the variable, control flow analysis works in lots of different places besides just typeof checks, and is possible in many cases because TS is structurally typed, not nominally typed.
[ Parent
| on HN ]
There are no comments on this comment yet.