- Mastering Rust
- Rahul Sharma Vesa Kaihlavirta
- 285字
- 2021-07-02 13:35:13
Getting Started with Rust
Learning a new language is like building a house – the foundation needs to be strong. With a language that changes the way you think and reason about your code, there's always more effort involved in the beginning, and it's important to be aware of that. The end result, however, is that you get to shift your thinking with these new-found concepts and tools.
This chapter will give you a whirlwind tour on the design philosophy of Rust, an overview of its syntax and the type system. We assume that you have a basic knowledge of mainstream languages such as C, C++, or Python, and the ideas that surround object-oriented programming. Each section will contain example code, along with an explanation of it. There will be ample code examples and output from the compiler, that will help you become familiar with the language. We'll also delve into a brief history of the language and how it continues to evolve.
Getting familiar with a new language requires perseverance, patience, and practice. I highly recommend to all readers that you manually write and don't copy/paste the code examples listed here. The best part of writing and fiddling with Rust code is the precise and helpful error messages you get from the compiler, which the Rust community often likes to call error-driven development. We'll see these errors frequently throughout this book to understand how the compiler thinks of our code.
In this chapter, we will cover the following topics:
- What is Rust and why should you care?
- Installing the Rust compiler and the toolchain
- A brief tour of the language and its syntax
- A final exercise, where we'll put what we've learned together
- Design Principles for Process:driven Architectures Using Oracle BPM and SOA Suite 12c
- C#程序設(shè)計(jì)實(shí)訓(xùn)指導(dǎo)書
- 企業(yè)級(jí)Java EE架構(gòu)設(shè)計(jì)精深實(shí)踐
- 控糖控脂健康餐
- Web Application Development with R Using Shiny(Second Edition)
- 假如C語(yǔ)言是我發(fā)明的:講給孩子聽的大師編程課
- YARN Essentials
- Android 應(yīng)用案例開發(fā)大全(第3版)
- Mastering Apache Maven 3
- Python時(shí)間序列預(yù)測(cè)
- AppInventor實(shí)踐教程:Android智能應(yīng)用開發(fā)前傳
- Python大學(xué)實(shí)用教程
- R語(yǔ)言數(shù)據(jù)可視化:科技圖表繪制
- Learning Nessus for Penetration Testing
- OpenCV with Python Blueprints