On Jun 23, 2020, at 14:34, Richard Levasseur <richard...@gmail.com> 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


Attachment: signature.asc
Description: Message signed with OpenPGP

_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/3OZDTDFYGVO4OIWR334E62MAH5EGOFEE/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to