logoalt Hacker News

UncleMeat • today at 12:29 PM • 2 replies • view on HN

Would you say the same thing about Java? It’s type system is also unsound.


Replies

csande17 • today at 12:36 PM

I'm not an expert on the Java specification, but my understanding is that Java as a language is well-defined enough that we can say things like "Java's type system is unsound", independently from any specific implementation of Java.

You can't do that with Rust because "Rust's type system" is literally just the vague concept of "a type system that is safe". The implementation of this ideal in rustc can have flaws, but Rust itself cannot, because Rust itself has no flaws by definition.

➕ show 1 reply
vrighter • today at 1:04 PM

but it isn't claiming to be saving you from things it can't prove it can either.