Comment Comment by skybrian 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. parent skybrian 9 years ago