shlogg · Early preview
Jeff Mitchell @sentinel1909

Rust Fundamentals: Comments, Variables, Mutability, And Shadowing

Learning Rust: Comments, Variables, Mutability & Shadowing. Comments are crucial for understanding code, variables are immutable by default, but can be made mutable with `mut`. Shadowing allows transforming values without changing their type.

Before I continue in my series of articles on learning Rust, I’d like to remind you that I’m a random internet nobody. I’m far from an expert in this language and feel I have no right to be writing about anything to anyone most of the time. Learning to code is difficult and there are probably far better-informed experts to learn from than me. However, I have the tiny hope that sharing my journey will be beneficial to someone. There are precious few people writing about their experience with Rust. The act of writing about my learning process and the hurdles I overcome benefit me and I hope you...