Re:State of Valhalla
by Joker_vD on Friday December 24, 2021 @08:26AM
(#29673372)
> The language actually provides quite a strong safety guarantee for generics, as long as we follow the rules:
Huh. That was written in 2020, four years after it was shown how to write a very small program that "compiles with no unchecked or raw warnings", and yet "the synthetic casts inserted by the compiler" will fail at run time [0]:
[0] N. Amin, R. Tate "Java and Scala's type systems are unsound: the existential crisis of null pointers", https://dl.acm.org/doi/pdf/10.1145/2983990.2984004
[ Parent
| on HN ]