3 ms·
`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
by doubleunplussed 6y ago
`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.
- tbe 6y agoNot at all since "case _:" is assigning to a variable you do not care about.
- doubleunplussed 6y agoIf 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.