Closed apasel422 closed 9 years ago
r? @reem
(I've picked a reviewer for you, use r? to override)
r? @Gankro
It's not clear to me that renaming the method to _mut
is valuable when there is no non-mut variant.
I was just going for consistency, but I can restore it to get
if you'd prefer.
via @cmr
1:58 PM <Elaine> So to me get :: Some Self Thing -> &T, get_mut :: Some Self Thing -> &mut T
1:59 PM <Elaine> get_mut is allowed to borrow refcells mutably etc
1:59 PM <Elaine> the receiver type is an irrelephant.
1:59 PM <Elaine> that's what I expect when I read code
So get_mut seems right
The most controversial part of this will be 9766baf, which is what I was going for with my comments in #15.