Y
Hacker News
new
|
ask
|
show
|
jobs
by
xmcqdpt2
123 days ago
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?
1 comments
kccqzy
123 days ago
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.
link