3 ms·
We’ll have full-bore match in 3.10, what’s the hubbub?
by hprotagonist 6y ago
We’ll have full-bore match in 3.10, what’s the hubbub?
- yawaramin 6y ago^ Every article talking about how Python doesn't have, need, or want a switch statement is now redundant.
- dragonwriter 6y agomatch doesn't have fallthrough, so I imagine some C-style switch partisans won't be satisfied.
- smitty1e 6y agoWeiting a module to provide a decorator that can leverage the ast module and rewrite the match block to provide C-style fall-through is left as an exercise for the reader.