3 ms·
Ada has no equivalent to Rust's borrow checker. It uses C-like memory management (malloc+free) plus idiomatic patterns somewhat like C++.
by zozbot234 6y ago
Ada has no equivalent to Rust's borrow checker. It uses C-like memory management (malloc+free) plus idiomatic patterns somewhat like C++.
- badsectoracula 6y agoI know, however unlike C++ in Ada releasing memory doesn't seem (from the little i've seen) as straightforward as in C or C++ (or Pascal for that matter) so it is a bit safer than those, even if not as safe as in Rust. Which is really what i refer to above - compared to C or even C++, Rust does add some things but other languages that existed for years (decades in some cases) added to C and C++ and compared to those Rust doesn't add that much (which isn't the same as adding nothing). Yet these languages weren't really adopted and people remained with C/C++. Do you really think that what Rust provides will succeed in making people adopt it when other languages failed (and let's be honest - while Rust adds some stuff it isn't like it has all the features other languages have either)? Is it even a matter of features (be it about memory safety or anything else) in the first place?
- swsieber 6y ago> Do you really think that what Rust provides will succeed in making people adopt it when other languages failed Given the ever broadening adoption of Rust, I'd say it'll definitely have a large foothold. I don't know that anything, no matter how good it is, will every fully replace C or C++. But I think a lot of projects that don't need a specialty compiler (embedded or stuff like game consoles) will start picking up Rust instead of C or C++.
- deleted 6y ago[deleted]