3 ms·
The bar here is C.
by loeg 6y ago
The bar here is C.
- saagarjha 6y agoI think that bar is met by some term which means something synonymous with "this is better than C". When dealing with "correctness" I generally would like the program to do what I intended.
- bilkow 6y agoI agree, and sincerely, I'm a Rust programmer and "memory safety" is definitely not why I use Rust. There are lots of memory safe languages but I feel more productive and get more satisfaction writing Rust than, say, Python, Lua or C++. In Rust I feel like almost every time the program works on the first time it compiles successfully, even without writing tests. Probably a combination of very well designed API, builtin RAII, very explicit syntax, compiler strictness and clear docs. I also cannot forget to handle errors (even if I just decide to propagate or crash). This is what "correctness" means to me, but it isn't exactly enforced by the compiler itself.
- m0xte 6y agoThe bar is set by the worst programmer not the worst language.
- MayorMonty 6y agoThe language works for the programmer. Those with a higher focus on safety (like rust) make the worst programmer better.
- albntomat0 6y agoCombined with the large number of vulnerabilities in mature, well-designed programs implemented by skilled programmers. The mythical programmer that can use C/C++ without bugs doesn't exist.
- m0xte 6y agoThe mythical programmer that can use Rust without bugs doesn’t exist either. I deal with higher level languages than rust and we’re capable of writing just as dangerous stuff through implementation errors.
- albntomat0 6y agoWhile bugs like logic errors clearly can exist in all languages, those that do things like memory management/enforce memory safety for the programmer eliminate whole classes of bugs. No language/tool/etc will stop all programmer mistakes, but they can definitely stop some.
- lukevp 6y agoWhenever I think about Rust vs C I think of Curl, where they've been working on a C program for decades that is used by an incredible amount of software, and they're still fixing memory leaks in it as recently as November 2019: https://curl.haxx.se/changes.html#7_67_0 https://curl.haxx.se/changes.html#7_67_0