3 ms·
So long as correct programs are incorrectly rejected, and it takes extra time to fix those mis-matches, many people will simply avoid the pain in the first plac
by falcolas 10y ago
So long as correct programs are incorrectly rejected, and it takes extra time to fix those mis-matches, many people will simply avoid the pain in the first place.
At the end of the day, many of us are paid to ship features. For many industries, correctness and safety just can't compete with new features. It's the reason Lisp, Python, Ruby, and Go are so popular - you can quickly write programs which are both fast enough and memory safe.
The gaming industry, one of the bigger C++ consumers, will also probably not move to Rust for similar reasons: hitting a schedule is much more important than not crashing or not having memory leaks. You can always patch a game.
- ccostes 10y agoThe counter-argument to this being that the safety checks imposed by Rust prevent errors in the first place, saving debugging time and getting features out more quickly.
- falcolas 10y ago> the safety checks imposed by Rust prevent errors in the first place Not all errors, only a particular class of memory errors. Most of those memory errors are those that a GCed language doesn't have to worry about, and C/C++ have a bevy of tools to find those errors before they leave the developer's hands as well. That said, Rust's borrow checker will also help protect against a class of shared memory mutation errors as well. Is the time cost of pleasing the borrow checker for every memory allocation worth this benefit? Probably something only individual developers can answer. My answer is, for now, no.