Re:Go Replaces Interface{} with 'Any'
by earthboundkid on Tuesday December 14, 2021 @08:33PM
(#29560894)
With generics, the metatype of a type variable is an interface type. If you just had T, it’s grammatically incomplete because you don’t specify the metatype. I guess you could just assume the any type if it’s incomplete, but that’s an unnecessary inconsistency in the grammar.
[ Parent
| on HN ]