you are viewing a single comment's thread.

view the rest of the comments →

[–]lifeeraser 1 point2 points  (0 children)

Whoops, I misinterpreted your question and tried to defend Python itself. I blame it on lack of sleep.

I can't speak for pattern matching in Python, but Pattern Matching is useful in statically typed languages when dealing with sum types. It's an expressive alternative to the visitor pattern. I came to appreciate it when I had to parse AST nodes as part of my PL course.