Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upConvention for Naming Getters #89
Comments
This comment has been minimized.
This comment has been minimized.
|
With very few exceptions (e.g. |
This comment has been minimized.
This comment has been minimized.
alteous
commented
Aug 3, 2017
fn member(&self) -> &MemberShould be the preferred option. |
dtolnay
added
the
new guideline
label
Sep 18, 2017
This comment has been minimized.
This comment has been minimized.
|
Ideally the current "Single-element containers implement appropriate getters" guideline should be expanded to cover getters more generally. |
This comment has been minimized.
This comment has been minimized.
|
Let's be sure to touch on the difference between conversions and accessors. As an example, |
dtolnay
referenced this issue
Sep 18, 2017
Closed
Explain difference between conversions and accessors #19
This comment has been minimized.
This comment has been minimized.
dtolnay
closed this
Oct 30, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
theduke commentedMay 31, 2017
I noticed that the guidelines don't recommend a way to name getters.
vs
Might be nice to recommend something here.
I'd be strongly in favor of the second option without
get_.