On Wed, Jun 24, 2020 at 7:30 AM Eric Nieuwland <eric.nieuwl...@gmail.com>
wrote:

> Great PEP!
>

Thanks!

I have some doubt about the keyword: ‘match’ seems to be at odds with
> ‘for’, ‘while’, ‘with’, ‘if’ as it is more of an action.
> It’s more like ‘try’ but that statement has a completely different
> structure.
>

Well, 'try' is also an action. :-) Many people have tried to come up with a
different keyword here, but nothing has been found that comes even close to
the simplicity of match. Plus, several other languages (Scala, Rust) use it
too (which is further evidence that it's a natural fit).


> Not a native speaker I don’t have a reasonable alternative, though.
>

Me neither, but I speak it quite fluently now, and 'match' really feels
like it fits well here.

-- 
--Guido van Rossum (python.org/~guido)
*Pronouns: he/him **(why is my pronoun here?)*
<http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________
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/ID2LGRLKZLG6AQ6TQKR76KM5R5VNH66B/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to