Visitor Pattern Considered Pointless - Use Pattern Switches Instead // nipafx
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.
nipafx // You. Me. Java.