Python 3.10 Pattern Matching in Action

preview_player
Показать описание
In this tutorial, we're looking at Structural Pattern Matching coming to Python 3.10. Using 3 real-world examples, you will see how it can make code shorter and more readable. We'll also explore the functional programming origins of pattern matching and compute derivatives of math expressions using the `ast` module in Python.

🔴 SOURCE CODE 👇

◼️ TIMESTAMPS 🕑
00:00 Intro
00:22 What is Pattern Matching?
02:32 Example 1: Event Queue, dataclasses
03:50 Example 2: JSON API, dicts
06:45 Example 3: Tree traversal, computing derivatives
11:36 Outro

◼️ REFERENCES 📚

◼️ TOPICS 🎓
#ProgrammingTutorial #PatternMatching #BigPython #FunctionalProgramming #Python

◼️ CREDITS 🙏
Рекомендации по теме
Комментарии
Автор

Great video! Excellent examples.
What are you using to run these notebooks? Looks neat

joeeeee
Автор

oml I really need that switch case, the number of possibilities are limitless

MahdeenSky
Автор

Hey the production quality is really nice! I love finding quality small channels. Subbed!

PeloCN
Автор

This reminds me of "when" statement from Kotlin. Neat.

slanecek
Автор

wonderful video! so so excited to have this feature in python. Its one of my absolute favorite features from programming in functional languages like haskell, elm, sml.

Super powerful and useful!

jewpcabra
Автор

Great video structure, content, and editing. Please keep them coming :)

maxcurzi
Автор

Great video, I've subscribed and look forward to more python goodness in the future.

damzduro
Автор

What Frontend is this? Looks like a newer version of Notebook?

MaxMustermann-ongd