-
Notifications
You must be signed in to change notification settings - Fork 374
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
Effectively naming lifetimes to help improve code clarity #259
Comments
This page is available on the web! |
https://www.possiblerust.com/pattern/naming-your-lifetimes I don't think it is good. It's up to the users and authors how they want to name stuff, some prefer single character some prefer multi characters, but either way both ways works and we should not specifically encourage one or the other, they should think which one is best for the task. |
I think it's like every so often, I agree, that we shouldn't encourage one or another approach but explain what can be achieved by it and how. Giving (dis-)advantages of either approach and talking about the thought process when |
Just wondering, shouldn't this already be mentioned in the book? Talking about that here is like talking about naming variables, very sensitive. Like c vs counter. |
The book talks more about the "what, why and how to use" and they use for their examples lifetimes with the names |
Interesting and I wonder if that wouldn't be a good addition to this repository?
https://web.archive.org/web/20210521022017/https://www.possiblerust.com/pattern/naming-your-lifetimes
Thoughts?
The text was updated successfully, but these errors were encountered: