Re:Python: Acceptance of Pattern Matching – PEP 634
by pfalcon on Wednesday February 10, 2021 @04:44AM
(#26087244)
I'm with everyone on "incredibly disappointing" valuation. But being pragmatic, I had to accept the idea "it can be addressed later" vs continuing this mess. And there was truly mess, e.g. PEP642, which initially tried to addressed just this issue, turned in a hairy monster trying to random-patch pattern matching considerably in rather weird ways.
Couldn't we achieve the same functionality with a little less ambiguity using the following syntax?:
it even works for the example in PEP 365