Why Rust is meant to replace C

Why Rust is meant to replace C

The Rust programming language is an ambitious project of the Mozilla Foundation – a language that claims to be the next step in evolution of C and C++. Over the years of existence of these languages some of their basic flaws still haven’t been fixed, like segmentation errors, manual memory control, risks of memory leaks and unpredictable compiler behavior. Rust was created to solve these problems while improving security and performance along the way.

Evrone has found use of Rust in a lot of projects, and our engineers have amassed substantial experience with the language. In this article we’ll tell you about the main features of Rust.

In the Rust v. C table, you mention that Rust has dynamic type checking but not for C++. What do you mean here? Rust doesn't do dynamic type checking any more that C++ does. If you mean Any, then C++ does the exact same thing with exceptions and type casts (dynamic_cast). So I'm not sure why you mentioned dynamic type checks only for Rust.


Pedantic feedback: Rust does not attempt to solve memory leaks. :slight_smile:


Being even more Pedantic, I'd tend to say it tries to mitigate memory leaks and make them a thing you shouldn't have unless you're doing obtuse things.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.