5 ms·
Fortunately not everyone makes technical decisions using the wisdom of crowds.
by dman 8y ago
Fortunately not everyone makes technical decisions using the wisdom of crowds.
- baby 8y agoIf people would switch to Rust and stop writing C the world would probably be a safer place yes.
- beefhash 8y agoGiven Rust's spotty platform support[1], I don't see that happening anytime soon. [1] https://forge.rust-lang.org/platform-support.html https://forge.rust-lang.org/platform-support.html
- SmellyGeekBoy 8y agoIt's possible to write unsafe code in any language.
- baby 8y agoCome on... C doesn't initialize memory, doesn't manage memory, doesn't verify bounds for buffers, etc. It's especially unsafe to write C.
- dman 8y agoThats why we have Java / Rust / Python / CSharp.
- baby 8y agoMy point.
- dman 8y agoSo we agree that we have different tools with different tradeoffs?
- baby 8y agoOf 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.
- dman 8y agoIn the same vein - if you happen to be stuck in a problem domain where counting/avoiding allocations is important the other languages I listed above (even C++ really) make things very hard. Rust has a decent take on building a safer c++ (with what appears to be C++ levels of complexity). Would like something similar to emerge for C.