If you like switch statements, in many strongly functional oriented programming languages such as Haskell and Scala, there is something called Pattern Matching, it is like Switch Statements on steroids. Quite amazing, and feels so powerful.
Agree with this. Pattern matching in functional languages with sum types and destructuring is super useful. While 'switch' in Java (esp up to 11) is barely good enough to use by comparison.
While I love pattern matching (in Rust), there's no pattern matching in many languages, which is very sad. And I guess this question is about a poor language without pattern matching, like JS.