- Rust Programming Cookbook
- Claus Matzinger
- 165字
- 2021-06-24 12:27:43
How it works...
Although not vastly different from many languages' control statements, the basic constructs in Rust can change the way you think about variable assignments. It certainly transformed our mental models to be more data-focused. This means that instead of thinking if this condition is reached, assign this other value to a variable, a reversed assign this other value to a variable if this condition is reached—or shorter transform this variable if this condition applies—may take over.
This is the functional stream in the Rust programming language and it lends itself well to shortening and focusing the important parts of a piece of code. Similar implications can be made from the loop constructs since everything is a scope and has a return value. Using these capabilities will make every program a lot more readable and shorter, especially if it's just simple operations.
We've successfully learned how to control execution flow. Now, let's move on to the next recipe.
- C語(yǔ)言程序設(shè)計(jì)(第3版)
- Learning Selenium Testing Tools with Python
- Python 深度學(xué)習(xí)
- arc42 by Example
- 跟小海龜學(xué)Python
- oreilly精品圖書:軟件開(kāi)發(fā)者路線圖叢書(共8冊(cè))
- Mastering Ext JS
- Spring快速入門
- 執(zhí)劍而舞:用代碼創(chuàng)作藝術(shù)
- Statistical Application Development with R and Python(Second Edition)
- 后臺(tái)開(kāi)發(fā):核心技術(shù)與應(yīng)用實(shí)踐
- Android Sensor Programming By Example
- 用Python動(dòng)手學(xué)統(tǒng)計(jì)學(xué)
- Node.js Web Development
- Internet of Things with Arduino Cookbook