Re:Java record pattern matching in JDK 19
by pharmakom on Sunday May 15, 2022 @04:00AM
(#31386041)
I actually disagree. instanceof is a fast operation on the JVM and can make code easier to read than equivalent OOP (less hopping around). However, you must be careful that all cases are covered since Java lacks exhaustive pattern matching.
[ Parent
| on HN ]
There are no comments on this comment yet.