On Wed, Jan 19, 2022 at 10:50 AM Manlio Perillo <manlio.peri...@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+unsubscr...@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/CAEkBMfHQph-vtApnfpVt4Zuq4LR4AJUNLmddf6hre_Xu5RsC%2Bg%40mail.gmail.com.

Reply via email to