4 ms·
The last example is a classic visitor pattern. The earlier ones (using structs of functions) are a variation on this that seems a bit closer to the spirit of pa
by skybrian 9y ago
The last example is a classic visitor pattern. The earlier ones (using structs of functions) are a variation on this that seems a bit closer to the spirit of pattern matching.
- swissmanu 9y agohi, i am the author of the article. > The last example is a classic visitor pattern you are absolutely right about the visitor pattern. will add the specific reference to the pattern in a revised version. thanks for pointing out!