News for hackers. Stuff that matters.
Re:Multi-Threading and Mutation by ackfoobar on Thursday March 14, 2024 @12:51PM (#39706261)
> type unsafety via e.g. covariant arrays

It's ironic when you think about it.

The compiler enforced type safety is often argued as not type safe because they are erased at runtime; but the actual type unsafety has a runtime check.

Re:Multi-Threading and Mutation by lmm on Thursday March 14, 2024 @06:43PM (#39709836)
> The compiler enforced type safety is often argued as not type safe because they are erased at runtime; but the actual type unsafety has a runtime check.

Were you trying to make the point that the biggest type safety hole in Java is in the one part where you have collections with unerased types? Because yeah that's kind of ironic.