"Structural pattern matching" for Python, part 2
"Structural pattern matching" for Python, part 2
Posted Sep 11, 2020 6:29 UTC (Fri) by johill (subscriber, #25196)In reply to: "Structural pattern matching" for Python, part 2 by milesrout
Parent article: "Structural pattern matching" for Python, part 2
Well, that's a question of your architecture/design, but a large part of the whole point of the match statement was to be able to match different types in the same place.
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.
