3 ms·
> ...unsafe operation in one section of code (say, an imported library) can have negative impacts on unrelated sections of code otherwise deemed safe. Yeah. Ju
by vardump 7y ago
> ...unsafe operation in one section of code (say, an imported library) can have negative impacts on unrelated sections of code otherwise deemed safe.
Yeah. Just like every line in C/C++ code can have negative impacts on unrelated sections.
While true, that talking point feels somewhat unfair or even in bad faith. Rust requires "unsafe" escape hatch to be able be a low level systems language. Or gasp, to call libraries using C ABI.
I write a lot of low level code in C/C++ (firmware, kernel drivers, low level services) and I think a C ABI compatible "runtimeless" safe language, like Rust, dramatically improve security, safety and even ultimately provide faster time-to-market.
- otabdeveloper2 7y ago> C/C++ No such thing.
- falcolas 7y agoThis comparison is against Ada's language criteria, not C/C++. You're well above 100% right with your points, if we weren't looking at the language criteria put forth by Ada. EDIT: It's worth nothing that Ada is also a system and embedded programming language.
- Jweb_Guru 7y agoAda has unsafe code as well and messing it up causes exactly the same thing as it does in Rust or C++, so I'm not sure what your point is.