[Python-Dev] Re: Presenting PEP 695: Type Parameter Syntax

2022年7月14日 19:30:18 -0700

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 <[email protected] <mailto:[email protected]>> 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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/JO6KUMZORJ5GCF5WWMNAMNYWBUUFFMGY/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to