News for hackers. Stuff that matters.
[dead]
Re:Java record pattern matching in JDK 19 by kaba0 on Saturday May 14, 2022 @02:57PM (#31381154)
You really could do away with the arrogance.
Re:Java record pattern matching in JDK 19 by quilombodigital on Saturday May 14, 2022 @03:36PM (#31381543)
I dont think saving a few lines for a very rare corner case is a strong reason to add a language feature
Re:Java record pattern matching in JDK 19 by jstimpfle on Saturday May 14, 2022 @03:56PM (#31381736)
Maybe they have a point? Arrogance != Wrong in Your Opinion.
Re:Java record pattern matching in JDK 19 by kaba0 on Saturday May 14, 2022 @04:18PM (#31381916)
Sure, though as I mentioned in other comment, pattern matching is basically a better Visitor pattern. Which is while not the most common pattern, is not that much of a niche either.
Re:Java record pattern matching in JDK 19 by jayd16 on Saturday May 14, 2022 @04:37PM (#31382095)
It's just an example...

And you don't seem to understand that it's about the safety of the exhaustive check not just the sugar.