Re:The Adoption of Rust in Business
by mcronce on Tuesday February 07, 2023 @01:12PM
(#34696563)
> You can always mutate things in a local context (i.e. objects that are either owned or uniquely borrowed)
You do have to explicitly declare them mutable, though, and will warn you if you have a mutable variable that you never mutate. This is helpful for avoiding surprises.
You do have to explicitly declare them mutable, though, and will warn you if you have a mutable variable that you never mutate. This is helpful for avoiding surprises.