Re:Pattern matching accepted for Python
by tbe on Saturday February 13, 2021 @03:18PM
(#26126416)
Not at all since "case _:" is assigning to a variable you do not care about.
[ Parent
| on HN ]
Re:Pattern matching accepted for Python
by doubleunplussed on Friday February 19, 2021 @12:37AM
(#26190129)
If it's actually assigning, then I'm happy!
The tutorials made it look like `_` is a special case, not just what you would expect putting any arbitrary name there to match no matter what.