-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convention for Naming Getters #89
Comments
With very few exceptions (e.g. |
fn member(&self) -> &Member Should be the preferred option. |
Ideally the current "Single-element containers implement appropriate getters" guideline should be expanded to cover getters more generally. |
Let's be sure to touch on the difference between conversions and accessors. As an example, |
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_
.The text was updated successfully, but these errors were encountered: