Hacker News new | ask | show | jobs
by pornel 614 days ago
I've done many rewrites of C in C, and C in Rust, and there is a big difference that is directly attributable to Rust.

The safety of references, no raw malloc, no null pointers, compiler-checked thread-safety of types, consistent and enforced error handling help a lot to make robust programs, and allow making bigger refactorings without fear of screwing something up.

The Turing Tarpit means that theoretically everything you can write in Rust you could have written in C, but in practice Rust enables things that wouldn't be worth the risk/effort in C, even when doing a ground-up rewrite.