ch18-03: ref
and mut ref
should be more prominent
#1102
Labels
Milestone
ref
and mut ref
should be more prominent
#1102
While it is important to list all the ways a pattern can be destructured, this become a not very interesting laundry list. However, somewhere in the middle of it you discuss
ref
andref mut
.According to my experience
ref
andref mut
are a major source of confusion for new rustations, at least it was for me. And the explanation here gave me an A-HA moment: Of courseref
andref mut
are fore destructuring...!I am just afraid that this important insight might be lost among what can be considered a list of syntactic sugar items.
Consider breaking this very long section into two, moving the
ref
andref mut
to some prominent place in one of them, or alternatively have some text that will make the reader stop and pay extra attention here.The text was updated successfully, but these errors were encountered: