The Visitor Pattern
DRAFT
Abstract
I’ve originally published this article on developia.de some two years ago. However I felt that it might make sense to repost it here, in english of course, and extend it so some point. What I hope to achieve is create a collection of patterns with some explanation as well as an implementation in different languages. The latter because not every language is the same which lately hit me when implementing – or at least trying to – a Singleton in Python.
Purpose
The visitor pattern is used to encapsulate opertions on objects.
UML
Usage Example
Implementations
Java
Python1
Related Links
- This implementation might never appear, actually
[↩]