On Sun, Jul 12, 2020 at 1:16 PM Jim J. Jewett wrote:
> Federico Salerno wrote:
> > On 11/07/2020 19:29, Jim J. Jewett wrote:
> > > To me, "else:" has a slightly different meaning than "case _:" ...
>
> > Could you construct two examples to prove behaviour would be different
> > between the two?
>
Federico Salerno wrote:
> On 11/07/2020 19:29, Jim J. Jewett wrote:
> > To me, "else:" has a slightly different meaning than "case _:" ...
> Could you construct two examples to prove behaviour would be different
> between the two?
The behavior would be identical; the difference is in why I put
On 7/12/20 2:38 AM, Federico Salerno wrote:
Was anything beside _ and ... proposed?
Yes, the PEP mentions using '?'. It isn't the authors' first choice but
it seems they're not dead-set against it either. Personally I prefer it
to special-casing '_'. It has no meaning in Python syntax yet,
On 11/07/2020 19:29, Jim J. Jewett wrote:
To me, "else:" has a slightly different meaning than "case _:" case _:
essentially a default, ensuring that the match logic is complete.
else: OK, the subject of this match failed, here is our fallback
logic. Whether this distinction is important enough