Click here to Skip to main content
Click here to Skip to main content
Alternatives (3)

Tagged as

"if" with no code block parenthesis

, 12 Feb 2011 CPOL
Avoid using "if" with no code block parenthesis

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

17 Feb 2011
paladin_t
Whatever, I agree with you, it would be worse in C / C++ code using macros.Suppose you got a multiline macro like this:#define some_macro \ do_something_1(); \ do_something_2();And using this macro without parenthesis:if(...) some_macro;orfor(...) ...
10 Feb 2011
Andrew Rissing
Always review all changes before submitting them. Especially, if using a global find and replace.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

PrafullaVedante
Software Developer Symantec Corporation
India India
No Biography provided

| | Privacy | Terms of Use | Mobile
Web03 | 2.8.1411023.1 | Last Updated 13 Feb 2011
Article Copyright 2011 by PrafullaVedante
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid