On Jun 23, 2020, at 14:34, Richard Levasseur <[email protected]> wrote:
> I agree with not having flat indentation. I think having "case" indented from
> "match" makes it more readable overall.
I don’t know whether my suggestion to use `match:` and putting the expression
inside this stanza can be accomplished, but I do want to add another point
about that suggestion that I’ve heard from several folks I’ve already chatted
with about this PEP. Using something like
match:
expression
case arm1:
pass
case arm2:
pass
else:
pass
nicely mirrors try/except and if/elif/else constructs so it looks quite natural.
Cheers,
-Barry
signature.asc
Description: Message signed with OpenPGP
_______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/3OZDTDFYGVO4OIWR334E62MAH5EGOFEE/ Code of Conduct: http://python.org/psf/codeofconduct/
