Variables and Mutability - The Rust Programming Language
Variables and Mutability - The Rust Programming Language
5
Public whispers
5
Contributors
2026-07-21 09:47:09
First whispered
Discussion activity
Public whispers on doc.rust-lang.org over the last 17 weeks
LessMore
Recent public whispers
Text Highlight2026-07-21 13:08:09
Original Highlight Excerpt
"Shadowing is different from marking a variable as mut"
Whisper Note
Wait, so I can't accidentally reassign unless I use let? That's actually pretty neat.
Text Highlight2026-07-21 12:59:09
Original Highlight Excerpt
"Shadowing is different from marking a variable as mut"
Whisper Note
So shadowing keeps the variable immutable after transforms, nice safety net.
Text Highlight2026-07-21 10:05:09
Original Highlight Excerpt
"variables are immutable. This is one of many nudges Rust gives you"
Whisper Note
Rust's nudges are more like gentle prods, and honestly, they grow on you.
Text Highlight2026-07-21 09:56:09
Original Highlight Excerpt
"variables are immutable. This is one of many nudges Rust gives you"
Whisper Note
I get the safety angle, but sometimes you just need a counter without all the fuss.
Text Highlight2026-07-21 09:47:09
Original Highlight Excerpt
"variables are immutable. This is one of many nudges Rust gives you"
Whisper Note
Immutability by default feels restrictive at first, but it really does catch bugs early.
Ranked nearby
See what people are saying on doc.rust-lang.org
Install DomWhisper to view live whispers as you browse, and join the discussion.
Get the extension