News for hackers. Stuff that matters.
Re:The Java type system is broken by mcculley on Friday July 20, 2018 @09:26PM (#17580236)
Erasure is superior to a system that would be typesafe? Please elaborate.
Re:The Java type system is broken by hota_mazi on Saturday July 21, 2018 @05:37AM (#17581427)
Erasure is just as type safe as reification.

Erasure gives you a little less flexibility to express certain constructs than reification allows, but from a type safety standpoint, the two approaches are equivalent.

If you want widen the meaning of "type safe" a bit, I would argue that reification is "less" type safe in the sense that it allows you to perform additional runtime type checks / type casts, which basically means you are second guessing the compiler and invalidating all the type soundness that it has provided you by accepting to compile your code.

Re:The Java type system is broken by mcculley on Saturday July 21, 2018 @10:18PM (#17584942)
It would not have allowed one to seal the loopholes demonstrated in the article?
Re:The Java type system is broken by eeperson on Saturday July 21, 2018 @03:49AM (#17581135)
How is reification any more type safe than erasure?
Re:The Java type system is broken by mcculley on Saturday July 21, 2018 @10:18PM (#17584944)
Would it not have allowed one to seal the loopholes demonstrated in the article?