logoalt Hacker News

informa23last Wednesday at 7:06 PM1 replyview on HN

[flagged]


Replies

woodruffwlast Wednesday at 7:14 PM

I think unsafe Rust is harder to write than C. However, that's because unsafe Rust makes you think about the invariants that you'd need to preserve in a correct C program, so it's no harder to write than correct C.

In other words: unsafe Rust is harder, but only in an apples-and-oranges sense. If you compare it to the same diligence you'd need to exercise in writing safer C, it would be about the same.

show 1 reply