5 ms·
The visitor pattern is an alternative to dynamic dispatch. Normally instead of using dynamic dispatch you inverse caller and callee roles and pass 'this'. The a
by mping 8y ago
The visitor pattern is an alternative to dynamic dispatch. Normally instead of using dynamic dispatch you inverse caller and callee roles and pass 'this'. The article uses a variation of the classic visitor pattern.
- saurik 8y agoThe visitor pattern uses dynamic dispatch on the type of the visitor.
- jmartinpetersen 8y agoDid you mix up dynamic dispatch with double dispatch in your comment?