On 08/07/2020 16:02, Guido van Rossum wrote:
Today I’m happy (and a little trepidatious) to announce the next
version of PEP 622, Pattern Matching.
After all the discussion on the issue, I can still not stop thinking that there needs to be a visual distinction between "capture" and "match" variables. Having rules ("plain names are capture, dotted names are match") is one more thing to be learnt.  One more bit of mystery when (a near newbie is) reading code.

Possible compromise: *two* sigils - one for capture, one for match. Both would be optional, only required when the default is not what is wanted, but could be added regardless if the author felt it added clarity.

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

Reply via email to