"Structural pattern matching" for Python, part 1
"Structural pattern matching" for Python, part 1
Posted Aug 6, 2020 16:28 UTC (Thu) by mb (subscriber, #50428)In reply to: "Structural pattern matching" for Python, part 1 by flussence
Parent article: "Structural pattern matching" for Python, part 1
These were just quotes from the article. How can that be misinformed?
I'm fully aware that there are alternative spellings in the article for the examples I picked from the acticle, but I just wanted to comment on the worst ones. That doesn't mean I agree with the alternatives, though.
> Perl/Raku's equivalent given/when syntax looks nowhere near as terse, unreadable or alien as these cherry-picked examples.
I did not (want to) compare the exact features from the examples to Perl's equivalents.
I just said that the constuct of using magic variables (_) or operators (?) is Perl-like and not very Pythonic.
> I'll agree that they are horribly shoehorned in and out of place though.
Ok. So you basically agree with me.
> That's what happens when your language doesn't evolve for 15 years
Erm, it'd call _that_ misinformed, indeed.
Literally dozens of major good features have been integrated in the past 15 years.
One of the most recent ones being f-strings, for example.
