3 ms·
That's a good question. I don't know the answer. What language are you working in now? Some really don't support variance (Go, apparently, and C would be an ob
by mikeash 11y ago
That's a good question. I don't know the answer.
What language are you working in now? Some really don't support variance (Go, apparently, and C would be an obvious example) but many others support it but just don't enforce it (Python and all the other dynamically-typed duck-typed languages).