filmov
tv
The real purpose of Python's match statement, feat. CSTs
Показать описание
What's the purpose of the match statement in Python?
The match statement is commonly mistaken for being Python's way of adding a switch-case statement. NOPE! This is not the intended purpose of the match statement, and it does not have similar performance benefits. Let's see what the match statement is REALLY for by parsing concrete syntax trees (CSTs).
SUPPORT ME ⭐
---------------------------------------------------
Top patrons and donors: Jameson, Laura M, Dragos C, Vahnekie, John Martin, Casey G
BE ACTIVE IN MY COMMUNITY 😄
---------------------------------------------------
CHAPTERS
---------------------------------------------------
0:00 Intro
0:20 Switch case?
2:52 ASTs and CSTs
4:14 True, True, True
4:46 Visiting the CST
5:50 Matching the CST
7:50 Addressing complexity
The match statement is commonly mistaken for being Python's way of adding a switch-case statement. NOPE! This is not the intended purpose of the match statement, and it does not have similar performance benefits. Let's see what the match statement is REALLY for by parsing concrete syntax trees (CSTs).
SUPPORT ME ⭐
---------------------------------------------------
Top patrons and donors: Jameson, Laura M, Dragos C, Vahnekie, John Martin, Casey G
BE ACTIVE IN MY COMMUNITY 😄
---------------------------------------------------
CHAPTERS
---------------------------------------------------
0:00 Intro
0:20 Switch case?
2:52 ASTs and CSTs
4:14 True, True, True
4:46 Visiting the CST
5:50 Matching the CST
7:50 Addressing complexity
The real purpose of Python's match statement, feat. CSTs
Python in 100 Seconds
What Can You Do with Python? - The 3 Main Applications
Normal People VS Programmers #coding #python #programming #easy #funny #short
Python 101: Learn the 5 Must-Know Concepts
Logical operators in Python are easy ☀️
What after Python?
What's the meaning of underscores (_ & __) in Python variable names?
What is List Slicing in Python | EP-19 List Slicing in Python | How to Slice Lists in Python
Python for Beginners - Learn Python in 1 Hour
👩💻 Python for Beginners Tutorial
Lec-1: What is Python? Introduction to Python 🐍 | Why Python | Where Python is used..
Java or C++ or Python | Which language is best for Placements?
How I use Python as a Data Analyst
you need to learn Python RIGHT NOW!! // EP 1
What is Python's Main Function Useful For?
How to Use F-Strings for String Formatting in Python
Introduction to Python Programming | Python for Beginners #lec1
Amazing Rotating Python Graphics Design using Turtle 🐢 #python #pythonshorts #coding #viral #design...
What Can You Do With Python? | GeeksforGeeks
Learn Classes in Python in 4 Minutes
Python If Statements | Python Tutorial #10
DATA TYPES IN PYTHON | Simplest Introduction
Why dataclasses in Python are awesome!
Комментарии