- Wed 05 October 2022
- Grant Paton-Simpson
Match Case - A Simple Switch Statement for Python?
At first glance, match case (Structural Pattern Matching) looks like a simple switch statement for Python. Unfortunately, match case is a mini-language that is unsafe to use apart from the very narrow cases where its benefits outweigh its costs / risks.