logoalt Hacker News

tialaramexlast Sunday at 1:13 PM1 replyview on HN

> Rust has a weaker definition if you consider that you can use `unsafe`

I don't see it. Rust makes the same guarantees regardless of the unsafe keyword. The difference is only that with the unsafe keyword you the programmer are responsible for upholding those guarantees whereas the compiler can check safe Rust.


Replies

foldrlast Sunday at 2:25 PM

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

show 1 reply