3 ms·
Cars benefit from newer scientific advancements like better materials and computerized control. What scientific advancements make C++ or Rust fundamentally diff
by phendrenad2 5y ago
Cars benefit from newer scientific advancements like better materials and computerized control. What scientific advancements make C++ or Rust fundamentally different from C?
- kaba0 5y agoNot having to rely on text-based macros, because they can actually abstract things?
- notriddle 5y agoThe borrow checker?
- IshKebab 5y agoOutside of `unsafe` blocks Rust is memory safe. It also has a much stronger type system which means code is more likely to work. That's something you have to experience first hand to understand, but you know that feeling you get writing C or C++ where new code appears to work the first time you run it? "That's suspicious. It must not have rebuilt, or maybe I forgot to call the new code." With Rust the compiler can catch so many mistakes that by the time you actually run the code there's a pretty good chance that it is right. My instinct is no longer "suspicious! Where have I gone wrong?"; it's "ha it worked! Though I'd still better double check".