News for hackers. Stuff that matters.
Re:Pattern matching accepted for Python by doubleunplussed on Tuesday February 09, 2021 @10:21PM (#26085409)
`case _:`?

I definitely would have gone for `else:`.

`_` is already used by convention for variables you don't care about, but it's kind mixing things to use it for this too.

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.
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.