You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On chapter 3 , shadowing section the text goes to great lengths to explain the difference between mutability and shadowing, somewhat implying that you can have either/or (not stated anywhere).
I think it would be a good idea to add a note clarifying that you can also shadow a mutable variable and maybe encourage the reader to try it for themselves.
NOTE: It is possible to shadow a mutable variable.
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion. I can see how you might have drawn that conclusion, but I don’t think the text does imply that; it simply distinguishes the behavior mutating an existing binding and creating a new one by shadowing. Also, the book is not a reference, but an introduction, so we don’t try to cover every single point we could this way—the physical copy is already pretty huge! Thanks, though.
On chapter 3 , shadowing section the text goes to great lengths to explain the difference between mutability and shadowing, somewhat implying that you can have either/or (not stated anywhere).
I think it would be a good idea to add a note clarifying that you can also shadow a mutable variable and maybe encourage the reader to try it for themselves.
The text was updated successfully, but these errors were encountered: