Login
From:
nipafx // You. Me. Java.
(Uncensored)
subscribe
Visitor Pattern Considered Pointless - Use Pattern Switches Instead // nipafx
https://nipafx.dev/java-visitor-pattern-pointless/
links
backlinks
Tagged with:
java
Roast topics
Find topics
Find it!
In modern Java, the visitor pattern is no longer needed. Using sealed types and switches with pattern matching achieves the same goals with less code and less complexity.