3 ms·
Not the OP, but I took a survey of the /r/programminglanguages reddit, where basically everybody has to deal with the "visitor issue". https://www.reddit.com/r
by chubot 8y ago
Not the OP, but I took a survey of the /r/programminglanguages reddit, where basically everybody has to deal with the "visitor issue".
https://www.reddit.com/r/ProgrammingLanguages/comments/7w3oeh/whats_your_experience_with_visitors/ https://www.reddit.com/r/ProgrammingLanguages/comments/7w3oe...
The top comment supported the use of the visitor pattern, but I would say that MOST people in the thread did NOT use visitors.
You only really need a visitor if you have more than one traversal. And even then you don't necessarily need it.