"Structural pattern matching" for Python, part 2
"Structural pattern matching" for Python, part 2
Posted Sep 3, 2020 16:38 UTC (Thu) by jcpunk (subscriber, #95796)In reply to: "Structural pattern matching" for Python, part 2 by logang
Parent article: "Structural pattern matching" for Python, part 2
I agree. I've yet to be convinced this is actually any better than
if XXX: print(x) elseif YYY: print(y) elseif ZZZ: print(z) else: raise ValueError()
