tubeshowcaseā—1,194,391 videosā™” My collection 0
← Learn to Code

Learn to Code17:12

A Closer Look At Structural Pattern Matching // New In Python 3.10!

ArjanCodes ↗

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.

Keep exploring Learn to Code