Comment on Clean Coder: The Dark Path (2017)parentComments−moring7moDid you mean arrays instead of lists? Arrays behave as you describe (with ArrayStoreException when you write a wrong value to an array). List<> is invariant WRT its type parameter.−hmry7moYeah, sorry, you're right. I have edited my comment. Thanks for the correction!
Comments
Did you mean arrays instead of lists? Arrays behave as you describe (with ArrayStoreException when you write a wrong value to an array). List<> is invariant WRT its type parameter.
Yeah, sorry, you're right. I have edited my comment. Thanks for the correction!