-
Notifications
You must be signed in to change notification settings - Fork 767
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
[fs.op.funcs] Remove empty parens when referring to functions by name #7622
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The specification style guidelines expressly say that "call X" is fine, where X has parentheses (= is an expression). It's just "calling the function Y" needs to have parentheses removed.
Maybe we want to fine-tune the rules a little, but the changes proposed here don't seem to be "obviously in line" to me.
Yes but it has to be a valid expression, so "calls
I don't see a distinction between "calls f()" and "calling the function f()" in the case where f() is not a valid expression. They're both just "naming" a function, so should not have parentheses. |
So, we accept "calls |
Yes, that's what I thought the rule was. I see that the wiki is actually ambiguous and can be interpreted differently, but that different interpretation seems useless to me. A rule that allows "call |
If we do want to allow "call |
Let's fix the wiki instead! |
"call |
Actually, is the wiki really ambiguous? It says (emphasis mine), """ and since |
Yeah I checked it again yesterday and cross-referenced it with #2150, and the wiki seems pretty clear. And all the changes in this PR are cases where |
OK, great, thanks! |
As per the Specification Style Guidelines.
https://github.com/cplusplus/draft/wiki/Specification-Style-Guidelines#describing-function-calls