- 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.
- JBoss Weld CDI for Java Platform
- Visual C++程序設計學習筆記
- C++面向對象程序設計(微課版)
- Three.js開發指南:基于WebGL和HTML5在網頁上渲染3D圖形和動畫(原書第3版)
- RTC程序設計:實時音視頻權威指南
- TypeScript實戰指南
- Buildbox 2.x Game Development
- Learning Python Data Visualization
- Kotlin進階實戰
- UI動效設計從入門到精通
- Python繪圖指南:分形與數據可視化(全彩)
- PHP從入門到精通(微視頻精編版)
- TensorFlow 2.0深度學習應用實踐
- 大話統計學(溢彩實訓版):基于R語言+中文統計工具
- Spring MVC:Beginner's Guide(Second Edition)