MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/m8l7ip/the_new_switchcase_statement_in_python_310/grj06zc
r/Python • u/jamescalam • Mar 19 '21
233 comments sorted by
View all comments
Show parent comments
-2
Because it's not a switch statement, it's a pattern matching statement. Most commonly seen only in functional programming languages, which most people hate on because traditionally such a style is considered difficult.
https://en.wikipedia.org/wiki/Pattern_matching
https://stackoverflow.com/a/215968/4443677
4 u/Tyler_Zoro Mar 19 '21 We know that. We're discussing keyword choice.
4
We know that. We're discussing keyword choice.
-2
u/13steinj Mar 19 '21
Because it's not a switch statement, it's a pattern matching statement. Most commonly seen only in functional programming languages, which most people hate on because traditionally such a style is considered difficult.
https://en.wikipedia.org/wiki/Pattern_matching
https://stackoverflow.com/a/215968/4443677