Comment by joshribakoff
19 days ago
Last time I used a visitor, it was probably last week when I created a lint rule. Visiting every node in a tree (ast or otherwise) with lambda is doing the pattern regardless of what you call the pattern. Tools like eslint still literally use the visitor pattern. I would point to software engineers dismissing tried and true ideas as the better generalization.
That means you don't understand visitor pattern: it's specifically an OOP pattern using OOP dispatch.
A tree traversal is a tree traversal.