> *type parameters *itself is not a type, but a list of type parameters. 

true. The spec means a single type parameter is a named type.

On Monday, March 21, 2022 at 12:12:26 AM UTC+8 xiej...@gmail.com wrote:

> Hi there. 
>
> I am reading go spec. When hit the "Types" section, 
>
>     https://go.dev/ref/spec#Types
>
> it stated "Predeclared types, defined types, and type parameters are 
> called named types."
>
> I wonder why "type parameters" is "named type". To find the definition of 
> this term, I found section 
>
>     https://go.dev/ref/spec#Type_parameter_declarations
>
> As quoted, "A type parameter list declares the *type parameters* of a 
> generic function or type declaration. ". My interpretation is: *type 
> parameters *itself is not a type, but a list of type parameters. 
>
> Thanks
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/449d6c55-3a04-4422-8fd8-fd87bd8a4d5cn%40googlegroups.com.

Reply via email to