logoalt Hacker News

Chai-T-Rex • today at 7:22 AM • 0 replies • view on HN

I think that the point of Rust as far as memory safety isn't perfection. The point is centralizing proper memory safety.

With C, every single programmer has to properly account for memory safety in just about every program they write. If you fix a memory safety bug in one program, that's not necessarily going to help any other program.

With safe Rust, that work has largely been done for you. If a memory safety bug is found and fixed in Rust's standard library, it's found and fixed for every program that uses safe Rust (with a recompile using the new standard library version).

The point is for some experts to work together to get things as memory safe as possible in one place instead of everyone having to get things as memory safe as possible in every place.