3
pxeger
8d

Damn PEP 622 is HOT!! Pattern matching statements in Python 3.10! (draft)

Comments
  • 1
    So basically ... switch cases with a bunch of syntactic sugar? Sounds like Guido finally gave in.
  • 2
    @hitko no, it's more like Haskell's pattern matching if you know Haskell, it's a pretty significant addition. (although switch-cases alone would be pretty sweet!)
  • 0
    @pxeger I'm familiar with the concept, I was making a point regarding PEP 3103
Add Comment