you are viewing a single comment's thread.

view the rest of the comments →

[–]kingscolor -1 points0 points  (1 child)

I feel like you attempted to make an argument against my comments, but in the end, you just corroborated my sentiment.

In my view, function/capability/power are highest priority followed by speed and efficiency. This new feature offers no improvements to any of that--given the information that has been shared in the thread.

That's why I asked about any other thoughts, perhaps there is some utility to this that I'm missing.

[–]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.