On 7/14/2022 6:16 PM, Guido van Rossum wrote:
In addition, we already use square brackets for *using* generics (e.g.
list[int]), and most surveyed languages use the same type of brackets in
declarations and uses.
I do not yet use annotations, but knowing about 'list[int]', etc, I
could immediately read and understand the new examples.
On Thu, Jul 14, 2022 at 1:10 PM <o.jacob.nils...@gmail.com
<mailto:o.jacob.nils...@gmail.com>> wrote:
Hi, I like this PEP but I couldn't find the motivation for using
angle brackets over square braces (brackets?).
I presume you meant the reverse, for proposing [] over <>. I agree that
giving the motivation above (and the one deleted) would be good idea.
--
Terry Jan Reedy
_______________________________________________
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/JO6KUMZORJ5GCF5WWMNAMNYWBUUFFMGY/
Code of Conduct: http://python.org/psf/codeofconduct/