Talin

Results 296 comments of Talin

Thinking about this some more, there's another reason why the one-off match statement shouldn't throw an exception if the match fails: because if it did throw an exception, you wouldn't...

To answer your questions: restating what I said before, I think that the 'full' syntax and the 'one-off' syntax represent similar but fundamentally (and qualitatively) distinct use cases. The former...

Well, a lot of static type checkers in TypeScript support exhaustiveness checking for switch statements if the input type is either an enum or a union of singleton types (eg....

There is something to be said for limiting the scope of the PEP as much as possible and then extending it later. Once we are able to survey common uses...

We can use the postponed label for this.

Well, it's already addressed in the PEP, and there was no discussion, so I wanted to mark it as resolved somehow.

Part of the reason why it makes sense in other languages is that match is often an expression rather than a statement (or more accurately, in many functional languages there's...

If we are following the destructuring syntax, then `[a, b, *_]` should allow you to ignore/skip the remaining values.

I suppose you could introduce a 'strict' keyword later to enable this behavior.

I am going to mark this one as 'accepted' since we have come to a conclusion.