Visitor pattern: Difference between revisions

m
→‎{{header|Raku}}: use a proper wikilink for Wikipedia
m (→‎{{header|Raku}}: use a proper wikilink for Wikipedia)
Line 36:
 
=={{header|Raku}}==
Raku implements [https[wp://en.wikipedia.org/wiki/Multiple_dispatch#Raku |multiple dispatch]] so the visitor pattern is perhaps not as useful/necessary there. That said, it can be done fairly easily.
 
(Largely based on an [https://github.com/jonathanstowe/raku-patterns/blob/master/Behavioural/Visitor/visitor-simple example published by Johnathan Stowe].)
10,327

edits