Visitor Pattern Strikes Back in Java

Modern Java quietly made the Visitor pattern relevant again. Sealed classes, records, and pattern matching changed the tradeoffs. It might…