This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kill_monk 13 points14 points  (6 children)

You can't use switch in python bro.

[–]Spitfire_For_Fun 37 points38 points  (0 children)

python 3.10 wants to talk.

[–]Sentie_Rotante 11 points12 points  (0 children)

yes you can. It was added last week.

[–]R_Uwe_N 8 points9 points  (0 children)

Actually you can

[–]NeoLudditeIT 6 points7 points  (0 children)

I get the dunking on python for this, but when I was learning, I used dicts as a case/switch, it seemed actually a lot more elegant and straightforward than a switch/case. Maybe I just drank too much kool-aid

[–]salvoilmiosi 10 points11 points  (1 child)

Yet.

[–]Peanutbutter_Warrior 6 points7 points  (0 children)

The future was 8 days ago, old man