Closed
Description
openedon Jan 8, 2018
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
and ref mut
.
According to my experience ref
and ref 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 course ref
and ref 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
and ref 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment