Re: When and where to use Visitor Pattern?



On Sun, 24 Apr 2005 15:45:03 +0200, Ilja Preuß <it@xxxxxxxxxxxxx> wrote:

Sam Hwang wrote:

Why make it so complicated?

Decoupling.

Yes the visitor is great at decoupling. Its especially good at "decoupling"
all that useful positional context information that is essential to just about
every graph traversal problem Ive ever encoutered :).


Paul C.
.