"Structural pattern matching" for Python, part 2
"Structural pattern matching" for Python, part 2
Posted Sep 16, 2020 16:02 UTC (Wed) by HelloWorld (guest, #56129)In reply to: "Structural pattern matching" for Python, part 2 by milesrout
Parent article: "Structural pattern matching" for Python, part 2
> Dispatching on types is just not a good way to write code in a dynamically typed language. There is no - and can be no - exhaustiveness checking for example, to give just one example of why it's a problem.
That problem has nothing to do with pattern matching and everything to do with dynamic typing, which is quite simply an inherently bad idea.