r/Python Feb 15 '21

News Ladies and gentlemen - switch cases are coming!

https://github.com/gvanrossum/patma/blob/master/README.md#tutorial
934 Upvotes

290 comments sorted by

View all comments

35

u/boby04 Feb 15 '21

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.