this post was submitted on 29 Jan 2024
0 points (NaN% liked)

AnarchyChess

5741 readers
139 users here now

Holy hell

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

Matrix space

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 0 points 1 year 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] 1 points 1 year ago

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.