When do you decide to use a visitors for your objects?
- by kunjaan
I always thought a method needs to be packed with the data. When would you want a method that is extrinsic to the object? What rule of thumb do you follow to have a visitor? This is supposing that you have full control of the object graph?