#matchstatement

Python PeakPythonPeak
2026-01-09

Match Statement vs Match Expression: Pattern Matching War

Python 3.10 vs PHP 8 match - both new, both powerful! Which language nailed pattern matching? This will spark debate!

.10

youtube.com/watch?v=gzCvib6GtHg

Turbo Learn PHPTurboLearnPHP
2025-12-29

Match Expression vs Match Statement: Pattern Matching Magic

PHP 8's match expression vs Python 3.10's match statement. Which language's pattern matching is more elegant? You won't believe this!

.10

youtube.com/watch?v=XOGx8q8GAfo

2024-01-28

@nedbat @bouncing after reading PEP636 I also felt that I would use match statements first with mapping patterns. That somehow feels like a very natural use case and improves readability of the code. Thanks for the awesome example!

#python #matchstatement #pep622 #pep634 #pep636

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst