This kind of pattern matching (with guards!) capabilities does not just make it elegant and trivial to replace Visitor patterns, but it's also a close analog to Erlang's pattern matching which I have always had a deep abiding envy for.

Comments