- Learning Rust
- Paul Johnson Vesa Kaihlavirta
- 66字
- 2021-07-02 23:07:15
Variable mutability
Unlike many other languages, Rust defaults to non-mutability of variables. That means that variable bindings are actually constants if not explicitly defined as mutable. The compiler checks against all variable mutations and refuses to accept mutating non-mutable variable bindings.
If you come from one of the C family of languages, a non-mutable can be considered to be roughly the same as a const type.
推薦閱讀
- Advanced Quantitative Finance with C++
- The Supervised Learning Workshop
- Node.js 10實戰
- HTML5 and CSS3 Transition,Transformation,and Animation
- Mastering Apache Spark 2.x(Second Edition)
- concrete5 Cookbook
- Mastering JavaScript Design Patterns(Second Edition)
- 利用Python進行數據分析
- Visualforce Developer’s guide
- JavaScript程序設計:基礎·PHP·XML
- IBM Cognos TM1 Developer's Certification guide
- 貫通Tomcat開發
- Python 3 Object:oriented Programming(Second Edition)
- Laravel Design Patterns and Best Practices
- 3ds Max 2018從入門到精通