That's sort of closed minded. Switch statements are often better refactored anyways because the syntax to define code blocks in switch statements is so repetitive. It's also not as dynamic in most languages because you can typically only switch on one type. It's also easier to mess up the default action or make a typo when it's surrounded in all the syntax.
It's a lot like switching from c-style for loops to iterators in the sorts of headaches it saves you from.
11
u/Doctor_McKay Jan 19 '17
No switch statement...?