Introduction

This book gives some guides for C++ programmers who wish to learn Rust in a quick and informal way. Rust is aimed to give an alternative to C++ in system programming. Most C++ programmers expect learning Rust to be easy, but it turns out to be a bit more difficult. The syntax of Rust is a bit alien to C++ programmers, but this might not be the cause of the difficulty. Rust introduces some new concepts to strike the equation of safety and performance, which require C++ programmers to take sometime to get familiar with . This book does not give a detail description or specification of Rust like other formal tutorials, but provides some basic examples of Rust and compare them with the C++ versions, so C++ programmers can quickly write some simple Rust programs by extracting the similarities between the two languages. The book also tries to give a preliminary understanding of some new concepts in Rust that do not exist in C++, especially Lifetime, and explains why these new features are introduced. After reading this book, C++ programmers may try writing Rust programs for some basic tasks and can move to work on some hobby projects. After that, they can refer back to the official Rust tutorial on Rust website for deeper understanding of the language and learn how to write Rust in a more idiomatic way.

results matching ""

    No results matching ""