On Sun, Aug 23, 2020 at 3:00 PM Juliusz Chroboczek <[email protected]> wrote:
>
> > We’re going to permit type switches on type parameters that have type
> > lists, without the “.(type)” syntax. The “(.type)” syntax exists to
> > clarify code like “switch v := x.(type)”.
>
> Could you please give an example of the proposed syntax?
func F[T constraints.Integer]() {
switch T {
case int:
case int8:
}
}
Ian
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcU0yWcRd4FwfUnshwLVeZBR7DN1ZBe0rzLBaSRg4UVJpQ%40mail.gmail.com.