In this video, I show an example of structural pattern matching, a pretty powerful feature that's part of Python 3.10. There are a couple of really nice things you can do with this, and although it resembles the traditional switch statement, it goes far beyond what the 'wicked switch' can do.
The code I worked on in this video is available here: [ Ссылка ].
💡 Here's my FREE 7-step guide to help you consistently design great software: [ Ссылка ].
🎓 Courses:
The Software Designer Mindset: [ Ссылка ]
The Software Designer Mindset Team Packages: [ Ссылка ]
The Software Architect Mindset: Pre-register now! [ Ссылка ]
Next Level Python: Become a Python Expert: [ Ссылка ]
The 30-Day Design Challenge: [ Ссылка ]
🛒 GEAR & RECOMMENDED BOOKS: [ Ссылка ].
💬 Join my Discord server here: [ Ссылка ]
🐦Twitter: [ Ссылка ]
🌍LinkedIn: [ Ссылка ]
🕵Facebook: [ Ссылка ]
👀 Channel code reviewer board:
- Ryan Laursen
- Sybren A. Stüvel
🔖 Chapters:
0:00 Intro
1:02 Explaining the example
1:35 Simple pattern match example
3:37 A more elaborate match example
7:49 Match with conditions
9:30 Match with objects
14:42 Caveats of using structural pattern matching
16:11 Other Python 3.10 features & final thoughts
#arjancodes #softwaredesign #python
DISCLAIMER - The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!
Ещё видео!