News for hackers. Stuff that matters.
Re: by xmcqdpt2 on Thursday February 19, 2026 @07:27AM (#47073061)
Java also has covariant mutable arrays. I can't believe they created the whole language and didnt realize that covariant arrays are unsound? Or didn't care?
Re: by kccqzy on Thursday February 19, 2026 @09:29AM (#47074116)
They didn’t care about preventing all unsoundness at type check time. As long as JVM can detect it and throw an exception, it’s good enough for Java.