2 ms·
> The builtin generics are a mess. Could you elaborate on this? I must not have used arrays, slices, maps, or channels enough to find that there's some common
by tomjakubowski 10y ago
> The builtin generics are a mess.
Could you elaborate on this? I must not have used arrays, slices, maps, or channels enough to find that there's some common issue with all of them, other than that the user can't write her own functions generic over them.
- kasey_junk 10y agoThe most obvious problem is that variance doesn't work. You cannot pass a []string to something that expects a []interface{} for instance, even though you can put every item in the first in an instance of the second.