24 Oct
2020
24 Oct
'20
7:43 p.m.
If you look in PEP 622 you'll see that there was a rejected idea `if match ...` that's pretty similar. We nixed it because it just made the PEP larger. For 3.11 we can consider something like this.
Of course I understand the PEP is already pretty big. But if it goes through and we start thinking about extending it with `if match` statements, my point is that it would be worth considering extending the walrus operator instead :)