"Structural pattern matching" for Python, part 1
"Structural pattern matching" for Python, part 1
Posted Aug 6, 2020 7:15 UTC (Thu) by flussence (guest, #85566)In reply to: "Structural pattern matching" for Python, part 1 by mb
Parent article: "Structural pattern matching" for Python, part 1
This comment's misinformed complaining is amusing because Perl/Raku's equivalent given/when syntax looks nowhere near as terse, unreadable or alien as these cherry-picked examples.
I'll agree that they are horribly shoehorned in and out of place though. That's what happens when your language doesn't evolve for 15 years then tries to steal features from other languages verbatim. Perl 5 fell into the same trap.
