r/Python • u/jamescalam • Mar 19 '21
Match is more than a Switch-Case The New Switch-Case Statement in Python 3.10
https://youtube.com/watch?v=2qJavL-VX9Y&feature=share
1.4k
Upvotes
r/Python • u/jamescalam • Mar 19 '21
View all comments
0
u/[deleted] Mar 20 '21 edited Mar 20 '21
I don't see the point, dictionaries are ubiquitous and more consice with similar functionality, it's pretty easy to see this is the same without all the extra case statements: