Consider a generic where you want T1 unconstrained but T2 constrained.  If 
you write

func Foo(type T1, T2 Bar)

then Bar constrains both.  Hence the need for

func Foo(type T1 interface{}, T2 Bar)

-- 
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/7df05c73-7c35-43e5-bdb4-44b6a73867cfo%40googlegroups.com.

Reply via email to