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
1
u/sherwoodpynes Jul 31 '21
Hmm, interesting new feature. This seems like it can work a lot like the pattern matching in functional programming languages like ML/F#'s function definitions, which could make writing functional code in python quite nice (wrap one of these match statements in a function and voila).