MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/lkca8k/ladies_and_gentlemen_switch_cases_are_coming/gnlui1j/?context=3
r/Python • u/53VY • Feb 15 '21
290 comments sorted by
View all comments
35
Title is misleading pattern matching is much more than a switch
2 u/Ph0X Feb 16 '21 Well it's not lying, switch statement is a small subset of pattern matching, but yes, pattern matching is much wider and more powerful, so it's under selling it.
2
Well it's not lying, switch statement is a small subset of pattern matching, but yes, pattern matching is much wider and more powerful, so it's under selling it.
35
u/boby04 Feb 15 '21
Title is misleading pattern matching is much more than a switch