Y
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
beefhash
2770 days ago
Given Rust's spotty platform support[1], I don't see that happening
anytime
soon.
[1]
https://forge.rust-lang.org/platform-support.html
link
SmellyGeekBoy
2770 days ago
It's possible to write unsafe code in any language.
link
baby
2770 days ago
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.
link
dman
2769 days ago
Thats why we have Java / Rust / Python / CSharp.
link
baby
2769 days ago
My point.
link
dman
2769 days ago
So we agree that we have different tools with different tradeoffs?
link
baby
2769 days ago
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.
link
[1] https://forge.rust-lang.org/platform-support.html