Hacker News new | ask | show | jobs
by baby 2771 days ago
If people would switch to Rust and stop writing C the world would probably be a safer place yes.
2 comments

Given Rust's spotty platform support[1], I don't see that happening anytime soon.

[1] https://forge.rust-lang.org/platform-support.html

It's possible to write unsafe code in any language.
Come on... C doesn't initialize memory, doesn't manage memory, doesn't verify bounds for buffers, etc.

It's especially unsafe to write C.

Thats why we have Java / Rust / Python / CSharp.
My point.
So we agree that we have different tools with different tradeoffs?
Of course, for now. But I still disagree that it is as easy (or hard) to write C without bugs as in any other languages. Most people should not write C.