Community
Participate
Working Groups
The 'accidental' word sounds strange in the context of the message, at least I feel so. Would the use of 'Potentially' instead of 'Possible' help? What I mean is that this is the mistake that is 'potential', not the assignment (the assignment is here anyway). Also 'accidental' is more closely related to an exogenous mishap than it is to a mistake. 'inadvertent' or 'unintentional' would be more precise.
Kent - we need help from a native speaker.
I assume this is for: if (i = i) {} 'Possible accidental assignment in place of a comparison. A condition expression should not be reduced to an assignment' I would be more direct and word it as: 'A comparison statement using == is typical instead of an assignment. A condition expression should not be reduced to an assignment'
(In reply to comment #2) > I assume this is for: > if (i = i) {} Right. > 'Possible accidental assignment in place of a comparison. A condition > expression should not be reduced to an assignment' > I would be more direct and word it as: > 'A comparison statement using == is typical instead of an assignment. A > condition expression should not be reduced to an assignment' Personally, I like it.
What about: 'A comparison statement using == is expected. A condition expression should not be the result of an assignment statement'
(In reply to comment #4) > What about: > 'A comparison statement using == is expected. A condition expression should not > be the result of an assignment statement' I like the first sentence better than the one of comment #2, since it is even more straightforward. The second sentence of comment #2 is probably slightly better than the second sentence of this proposal though, since 'assignment statement' sounds odd in this context, and we probably don't want to repeat 'expression' either... My preference would then go to: 'A comparison statement using == is expected. A condition expression should not be reduced to an assignment'