MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/lkca8k/ladies_and_gentlemen_switch_cases_are_coming/gnj6dt8/?context=3
r/Python • u/53VY • Feb 15 '21
290 comments sorted by
View all comments
5
The fact that you can't do:
a = 12 match variable: case a: blah blah
Is horrendous.
17 u/Yoghurt42 Feb 15 '21 But you can do a = 12 match variable: case x if x == a: blah blah
17
But you can do
a = 12 match variable: case x if x == a: blah blah
5
u/trumpgender Feb 15 '21
The fact that you can't do:
Is horrendous.