Related Design Patterns
- Command pattern: It encapsulates like the visitor pattern one or more functions in an object to present them to a caller. Unlike the visitor, the command pattern does not enclose a principle to traverse the object structure.
- Iterator pattern: This pattern defines a traversal principle like the visitor pattern without making a type differentiation within the traversed objects.
Read more about this topic: Visitor Pattern
Famous quotes containing the words related, design and/or patterns:
“So universal and widely related is any transcendent moral greatness, and so nearly identical with greatness everywhere and in every age,as a pyramid contracts the nearer you approach its apex,that, when I look over my commonplace-book of poetry, I find that the best of it is oftenest applicable, in part or wholly, to the case of Captain Brown.”
—Henry David Thoreau (18171862)
“With wonderful art he grinds into paint for his picture all his moods and experiences, so that all his forces may be brought to the encounter. Apparently writing without a particular design or responsibility, setting down his soliloquies from time to time, taking advantage of all his humors, when at length the hour comes to declare himself, he puts down in plain English, without quotation marks, what he, Thomas Carlyle, is ready to defend in the face of the world.”
—Henry David Thoreau (18171862)
“The ninety percent of human experience that does not fit into established narrative patterns falls into oblivion.”
—Mason Cooley (b. 1927)