by uryga · 6y ago · 0 comments
x if cond else y
IMO match-expressions have basically the same benefits/trade-offs.But I do wish they would have not set aside generalized unpacking.
idk... you can write a huge ugly if-elif-else like this:
a if foo else b if bar else c if quux else d
but most people just don't.