6 ms·
Python 3.10 Match statements are 86% faster than If statements
- stevefolta 4y agoWait, is "match" gonna be a reserved word now? 'Cause I use it as a variable name all the time when dealing with regexes.
- dpausp 4y agoYou can still use it as a variable name, match and case are just "soft" keywords. https://lwn.net/Articles/893193/ https://lwn.net/Articles/893193/