ðMake your Python code MUCH CLEARER with this feature
āļāļąāļ
- āđāļāļĒāđāļāļĢāđāđāļĄāļ·āđāļ 30 āļ.āļ. 2024
- Master Python's Structural Pattern Matching!
In this video you'll learn to:
- Simplify complex conditionals
- Handle intricate data structures effortlessly
- Write cleaner, more expressive code
ð Visit my blog at: www.bitswired.com
ðĐ Subscribe to the newsletter: newsletter.bitswired.com/
ð Socials:
LinkedIn: / jimi-vaubien
Twitter: / bitswired
Instagram: / bitswired
TikTok: / bitswired
00:00 A Powerful New Feature
00:14 A Simple Demo
01:52 Literal Patterns
02:24 Capture Patterns
03:26 Wildcard Patterns
03:53 Sequence Patterns
04:31 Mapping Patterns
05:25 Class Patterns
06:01 OR & AS Patterns
06:58 Guard Patterns
07:36 Realistic Comparison with If/Else - āļ§āļīāļāļĒāļēāļĻāļēāļŠāļāļĢāđāđāļĨāļ°āđāļāļāđāļāđāļĨāļĒāļĩ
Looking forward to crazy recursive functions that use these features
Ahah definitely
I love Rust pattern matching for that
Now we have something similar in Python ðŠð―
My favorite engineer âĪ
Le plus chanceux ;) ðĶð
Gonna try this for sure keep it up bro !
Thanks frero ð
You can try it in your Django project ;)