logoalt Hacker News

codehero • yesterday at 1:29 PM • 4 replies • view on HN

"Type systems are hard!" As hard as its safety is pushed on us, not even Rust is free from hand waving.


Replies

ahartmetz • yesterday at 1:36 PM

At least Rust has a chance to be largely correct because it has much greater effort per amount of code (in the compiler) invested into it than most any application code.

➕ show 1 reply
antonvs • yesterday at 3:23 PM

Rust’s type system enables the possibility of discovering and fixing a bug like this, and ruling out this class of bugs for all future programs.

The hand-waving comes from other languages which can’t do anything to prevent their users encounter such bugs and the ensuing CVEs.

doodpants • yesterday at 1:45 PM

I mean, Rust's whole shtick is safety, so that's really the only thing there is to "push" about the language.

➕ show 5 replies
caaqil • yesterday at 1:38 PM

> not even Rust is free from hand waving.

It is moral though, so who cares really.