logoalt Hacker News

foldrlast Sunday at 2:25 PM1 replyview on HN

C is safe by the same logic, then? You can write safe code in anything if you don’t make mistakes.


Replies

tialaramexlast Sunday at 4:50 PM

But the definition is what we're talking about, not whether you make mistakes. Of course it's important that safe Rust is checked by the compiler, but that's crucially not part of how safety is defined.

I would guess that somebody more on the pulse of C's safety efforts could tell you whether they have a definition of memory safety for C or whether they're comfortable with an existing definition from somebody else.

show 2 replies