logoalt Hacker News

preg_match • yesterday at 2:38 PM • 1 reply • view on HN

Even comparing to C++ it’s a huge improvement, because all of C++ is unsafe. Unsafe rust, even in codebases that utilize it, is a small minority of the code.


Replies

uecker • yesterday at 3:28 PM

This "all C++ is unsafe" is similarly exaggerated Rust marketing claim. It is logically equivalent to "all Rust code is unsafe because it may contain unsafe" and nonsense for the same reason. The only claim you can make is that it is easier to screen for the unsafe parts because it is marked more clearly. I would agree with this much more limited statement.

➕ show 2 replies