5 ms·
There have been many times when I've wished python had something like the walrus operator. In particular, without the walrus operator you can't write an if-eli
by thayne 7y ago
There have been many times when I've wished python had something like the walrus operator.
In particular, without the walrus operator you can't write an if-elif chain of regex comparisons. The best way to that that I've been able to find is with a bunch of nested if-else statements.
- Sean1708 7y agoAnd working with queues/stacks is much more pleasant (which I seem to do a lot...).