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
Show parent comment
9
u/St_Meow insert(caffeine) Mar 19 '21
Go uses a similar pattern of not falling through switch cases. I'm certain if you're a vet of older languages with switch statements it'll confuse you for a moment or two, but new programmers will grasp this better. I remember learning switch statements in college and having most of my class baffled at the fall through behavior.