this post was submitted on 29 Jan 2024
478 points (98.8% liked)

AnarchyChess

4902 readers
277 users here now

Holy hell

Other chess communities:
[email protected]
[email protected]

Matrix space

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] ad_on_is 42 points 5 months ago (1 children)

Lol... stupid junior-devs... in such case you should go with switch-statements instead... much cleaner.

[–] Gumus 11 points 5 months ago (1 children)

Switch-statement (called match) was added to Python 3.10 in late 2021. This is a reasonable, albeit older style of enumerated branching.

[–] [email protected] 5 points 5 months ago (1 children)

Switch statements and differently named but similarly purposed statements have been around since the 60s. Get outta here with this "switch is a newer style because python only just got them" nonsense.

[–] cucumber_sandwich 7 points 5 months ago

Nobody is doubting that. The code in the meme is python...