On Tue, 23 Jun 2020 14:56:47 -0700 Barry Warsaw <barry@python.org> wrote:
On Jun 23, 2020, at 14:34, Richard Levasseur <richardlev@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.