Comments (6)
I've fleshed it out a little. Yes, variables are variables. But the mutable default that is so common confuses people.
from gentle-intro.
Good point. I'm trying to speak to the usual sense of 'variable' in programming, but it's more the mathematical sense here. And 'variable' vs 'constant' is the important thing.
from gentle-intro.
@stevedonovan They're the same meaning! It's just that the defaults differ, like with references.
from gentle-intro.
Should this be closed with the changes you made? They seems good enough.
from gentle-intro.
"immutable variable" is an oxymoronic contradiction in normal english.
from gentle-intro.
@pannous In some sense "variable" is short for "variable binding" - the value inside is the variable, and what you're mutating is the "variable binding", not the value (which varies for a different reason than mutation - e.g. function arguments can differ between calls).
from gentle-intro.
Related Issues (20)
- 5-stdlib-containers: convert vs collect HOT 1
- object-orientation: "obselete" → "obsolete" HOT 2
- False: "an active subreddit which is unusually well-moderated"
- plan of transalte Chinese 🇨🇳 HOT 3
- 3-filesystem.md About .stdout(Stdio::piped()) ❓
- The "Error Handling" chapter should include a section on `failure`
- "Optional Values" section in basics.md uses `println!("first value {}", first.unwrap())` without explaining why we don't need to dereference `first.unwrap()`
- How to use executable code HOT 1
- closure example should panic? HOT 2
- FAQ link on front page broken HOT 1
- Change inclusive range operator to `..=`
- Chapter 2 - Generics - Copy trait not needed anymore (?)
- Update Nom chapter to use Nom 5 HOT 1
- error: cannot find macro `tag_s` in this scope
- A question on FileSystem example
- Use newer rustbook version to improve formating for the hosted pages at https://stevedonovan.github.io
- iter2 example no longer fails HOT 2
- dyn is required for Error trait
- ePUB? HOT 2
- Minor typo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gentle-intro.