News for hackers. Stuff that matters.
Re:The visitor pattern is essentially the same thing as Chur... by kaba0 on Thursday February 04, 2021 @11:14AM (#26026680)
Just a heads-up, but sealed classes (basically sum types) and proper pattern matching is coming to Java.
Re:The visitor pattern is essentially the same thing as Chur... by Twisol on Thursday February 04, 2021 @12:05PM (#26027294)
After many years of not having them ;) I'll be very glad to be able to retire this well-used gripe.
Re:The visitor pattern is essentially the same thing as Chur... by mrkeen on Thursday February 04, 2021 @01:48PM (#26028492)
We got Streams that don't short-circuit properly and Optionals that throw NullPointerExceptions, what creative fuck-ups do you reckon we'll get with sum types & pattern matching?
Re:The visitor pattern is essentially the same thing as Chur... by Twisol on Thursday February 04, 2021 @02:46PM (#26029010)
Shh, you've said the quiet part out loud ;)