- Notifications
You must be signed in to change notification settings - Fork42
Fix the wording "counter example"#129
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
I think we could make it more clear what is good and what is bad. voidf1(const string& s);// OK: pass by reference to const; always cheapvoidf2(string s);// bad: potentially expensivevoidf3(int x);// OK: Unbeatablevoidf4(constint& x);// bad: overhead on access in f4() in this case it could look like: auto value = randomThing.weirdProperty->getValue();// bad: non-obvious typelong value = randomThing.weirdProperty->getValue();// OK: type is specified, no need to guess type |
@pieterhijma are you going to update this? |
5440076 to5f3f759Compare
Yes, I just did :) |
@hyarion, could you please review? |
Make a small fix in reaction tothis feedback by@benj5378.