News for hackers. Stuff that matters.
Re:PEP 622 – Structural Pattern Matching by Tyr42 on Wednesday June 24, 2020 @12:10PM (#23629692)
I would say it's not a smart switch statement, since you can bind variables.

  match shape:
    case Point(x, y):
        ...
    case Rectangle(x, y, _, _):
        ...
  print(x, y)  # This works

There are no comments on this comment yet.