Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
xmcqdpt2
4mo ago
0 comments
Save
Share
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?
0 comments
1 comments · 1 top-level
top
newest
oldest
kccqzy
4mo 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.
j
/
k
navigate · click thread line to collapse