3 ms·
When I originally read about Visitor in the GoF book it was fun to work through its convoluted way but seemed ugly in any language, including the original Small
by zwieback 8y ago
When I originally read about Visitor in the GoF book it was fun to work through its convoluted way but seemed ugly in any language, including the original SmallTalk.
I'd probably just do type checks and maybe use a 2D table for the possible interactions.