Visitor pattern: Difference between revisions
Content added Content deleted
m (→{{header|Python}}: typo) |
|||
Line 187: | Line 187: | ||
=={{header|Python}}== |
=={{header|Python}}== |
||
This is based |
This is based on the [[wp:Visitor_pattern|Wikipedia]] Python example, but uses structural pattern matching instead of multiple visit methods. |
||
<syntaxhighlight lang="python"> |
<syntaxhighlight lang="python"> |