Re:Software Design Patterns Are Not Goals, They Are Tools
by gnaritas on Thursday May 19, 2016 @01:24PM
(#11731864)
> If you look it up it's tons and tons of text to describe "pass in a function and descend a graph calling it on each node."
No, it's one word: visitor. That's the point, we can now avoid saying "pass in a function and descend a graph calling it on each node" and instead simply say visitor and everyone knows what we mean without the big long explanation.
No, it's one word: visitor. That's the point, we can now avoid saying "pass in a function and descend a graph calling it on each node" and instead simply say visitor and everyone knows what we mean without the big long explanation.