2 ms·
Array covariance is another one. They added it because Java had it. And now they regret it.
by danbruc 13y ago
Array covariance is another one. They added it because Java had it. And now they regret it.
- elisee 13y agoInteresting. Did a Google search which turned up this explanation about why it's considered broken: array covariance means runtime type checks rather than compile-time checks, which are more expensive and could hide bugs that could be caught when compiling. (http://blogs.msdn.com/b/ericlippert/archive/2007/10/17/covariance-and-contravariance-in-c-part-two-array-covariance.aspx http://blogs.msdn.com/b/ericlippert/archive/2007/10/17/covar...)