Hacker News new | past | comments | ask | show | jobs | submit login

In Rust, it does (in general) make the value immutable. Most mutations of values in Rust are done through mutably borrowing the value, which you can't do when the value is defined with `let` rather than `let mut`, the exceptions being things like `Mutex`, which gives you a value that can be mutably borrowed when you acquire the lock.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: