Re: Presenting PEP 695: Type Parameter Syntax

Terry Reedy <[email protected]> Thu, 14 Jul 2022 22:22:42 -0400
Newsgroups gmane.comp.python.devel
Message-ID <[email protected]>
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