5 ms·
It's more than likely the function will return an object of type blah type interface blah { behavior() }
by howeyc 12y ago
It's more than likely the function will return an object of type blah
type interface blah {
behavior()
}
- danieldk 12y agoNot in a container, where generics are typically used. Of course, blah could be an interface requiring a comparison or hash method, but the effective result is the same: you have to do reflection to find out what is in the container, there are no compile-time guarantees.