#Pattern Matching
2 posts tagged Pattern Matching. All posts
Records and pattern matching in modern C#How C# records work (record class vs struct, with-expressions, value equality) and how to match them with property, relational and list patterns in switch expressions.
Structural pattern matching in Python: matching dicts, sequences and classesUse match/case to parse JSON events and command tuples, match classes with __match_args__, add guards, and avoid the capture-vs-constant trap.
© 2026 David Li · Home · Blog · RSS ·Classic site · Built with Astro, Starlight and three.js · Logos:Font Awesome Free (CC BY 4.0)