I read it, but it only shows simple examples.
The proposal shows a complex example like mutually referencing type 
parameters, several examples about non trivial cases and several examples 
for type inference.

On Wednesday, January 19, 2022 at 11:00:52 AM UTC+1 
axel.wa...@googlemail.com wrote:

> On Wed, Jan 19, 2022 at 10:50 AM Manlio Perillo <manlio....@gmail.com> 
> wrote:
>
>> Hi.
>>
>> I'm reading the Type Parameter Proposal to learn how to use type 
>> parameters and I noted that one of the example in the "Element constraint 
>> example" section uses the
>> constraints.Number constraint.  This constraint does not exist and 
>> probably should be replaced with constraints.Integer.
>>
>> I hope that the typo is fixed, since currently the proposal document 
>> seems to be the only authoritative guide for type parameters.
>>
>
> There's also a new tutorial on the topic 
> <https://go.dev/doc/tutorial/generics> and the spec draft for Go 1.18 
> <https://tip.golang.org/ref/spec> contains the changes for type 
> parameters (though it seems not necessarily complete yet).
>  
>
>>
>> Thanks
>> Manlio
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/golang-nuts/7a12b4b6-ae90-4437-a557-8913f605ef0bn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/golang-nuts/7a12b4b6-ae90-4437-a557-8913f605ef0bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/b1771893-1d00-4d1d-808d-cf232fcac037n%40googlegroups.com.

Reply via email to