[basic.fundamental] Remove bullet for reflections being function parameters - #9324
[basic.fundamental] Remove bullet for reflections being function parameters#9324eisenwave wants to merge 1 commit into
Conversation
…meters Function parameters are already covered by the preceding bullet stating that a reflection may be a representation of a variable. Every function parameter is a variable, and having a distinct bullet misleads the reader into believing it is not.
|
I think you could do more than just strike the bullet; you could change the other bullet to "a variable (including function parameters)" or so, but this would de-facto admit that our wording is so confusing that every time we say "variable", we need to remind the reader of what we actually mean and that we didn't just forget about function parameters. |
|
Hmm, so it appears that |
|
After consulting with others, I guess we do intend for "function parameter" and "variable" to be distinct, even though the wording doesn't make that work very well. Deleting the bullet goes against that intent. |
Function parameters are already covered by the preceding bullet stating that a reflection may be a representation of a variable. Every function parameter is a variable, and having a distinct bullet misleads the reader into believing it is not.
This misunderstanding that function parameters are not variables led to CWG3005.
See prior discussion at: