Comment Comment by typescriptfan1 Not sure pattern matching will age well. It seems to promote anti-OO design, may cause the switch statement to devolve into if/else, and creates another way to do the same thing. parent typescriptfan1 6 years ago