Summary
We saw, in this chapter, that Rust is a very interesting language, whose designers knew to take advantage of the knowledge gathered by their predecessors and to innovate in the right places. The result is a nice syntax, a more natural way to deal with memory without using a garbage collector, and an overall modern development experience. We explored this in this chapter.
However, C++ is hard to compete with. The sheer number of libraries, frameworks, blogs, articles, code examples, books, and experience available in the world on C++ is impossible to equal in a short time. Rust has found its niches in Web Assembly applications and various tools, but it’s far from replacing C++.
Still, we have to remember that languages are not necessarily picked based on technical reasons and that cultural reasons matter as well. Newer generations of programmers might enjoy Rust much more than C++, and with the NSA and the White House leading the focus on memory-safe languages,...