News for hackers. Stuff that matters.
Re:The Java type system is broken by Doxterpepper on Thursday July 19, 2018 @10:05AM (#17566369)
What's the point of strong typing if it only saves you most of the time?
Re:The Java type system is broken by dtech on Thursday July 19, 2018 @10:15AM (#17566442)
So a type-system that does the right thing in 99.999999% of the cases is completely useless according to you?
Re:The Java type system is broken by Retra on Thursday July 19, 2018 @11:22AM (#17567152)
Don't throw out a number like that. We're talking about a Turing complete language, which means we're talking about protections that have to range over all possible programs and abstractions. It may be that your problem domain is extremely biased toward some small region of that space, in which case a type system that doesn't work there is actually useless.

Either way, it is hard to reason about factors like that numerically when we've not qualified which kinds of programs we're expecting the type system to actually work for.

Re:The Java type system is broken by tom_ on Thursday July 19, 2018 @10:32AM (#17566624)
I think the question is rhetorical.
Re:The Java type system is broken by HelloNurse on Thursday July 19, 2018 @11:12AM (#17567049)
Not really, a language in which some type errors are impossible (rather than merely very unlikely) makes it drastically easier to prove something useful about programs (e.g. to optimize away runtime checks that would otherwise be needed as a safety net and impossible cases).