07:31A Closer Look At Structural Pattern Matching // New In Python 3.10!
From the creator
š” Learn how to design great software in 7 steps: https://arjan.codes/designguide. 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: https://github.com/ArjanCodes/2021-structural-pattern-matching. š ArjanCodes Courses: https://www.arjancodes.com/courses. š¬ Join my Discord server: https://discord.arjan.codes. āØļø Keyboard Iām using: https://amzn.to/49YM97v. š 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
Published 2021-07-09 Ā· Watch on YouTube ā
Availability and playback restrictions are controlled by the original channel.





