On Tue, 23 Jun 2020 14:56:47 -0700
Barry Warsaw <ba...@python.org> wrote:
> 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.

I find it quite un-natural.

Regards

Antoine.

_______________________________________________
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/L3MECQU6NXBA6PSY5HLUC4LCHM6GSIL2/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to