Saturday, November 14, 2009

New Recommendation in Reprint: use of bools in literal expressions

A new recommendation has been added, in section 15.3 (on page 237):

Recommendation: Do not use literal true in conditional expressions. Avoid using literal false in conditonal expressions.

This is due to the discussed issues regarding the possibility of multiple non-false values in C/C++.

No comments:

Post a Comment