4 ms·
The syntax is reusing regular python syntax with completely different effects, so you have to learn 2 syntaxes. Trying to do simple things like matching the co
by BiteCode_dev 4y ago
The syntax is reusing regular python syntax with completely different effects, so you have to learn 2 syntaxes.
Trying to do simple things like matching the content of a variable will fail if you forget you have to use a dotted path if you want to avoid binding.
Trying to do advanced things such as "match a dict with variable key names and values, but you wish to enforce the number and the types and unpack them in variables" is ridiculously twisted to do, when it's even possible.
I use match/case, but it like the early years of type hints or asyncio: terrible ergonomics, and we know there is a ceiling to how much it can improve.