- 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.
推薦閱讀
- JavaScript+DHTML語法與范例詳解詞典
- Computer Vision for the Web
- 零基礎玩轉區塊鏈
- HBase從入門到實戰
- JavaScript by Example
- Getting Started with SQL Server 2012 Cube Development
- 軟件項目管理實用教程
- Mastering Web Application Development with AngularJS
- Scratch趣味編程:陪孩子像搭積木一樣學編程
- 計算機應用基礎教程(Windows 7+Office 2010)
- Illustrator CS6設計與應用任務教程
- 現代C:概念剖析和編程實踐
- 從零開始學UI:概念解析、實戰提高、突破規則
- 黑莓(BlackBerry)開發從入門到精通
- Python編程基礎教程