Omitting extra braces is a boon
Posted Jun 11, 2008 7:08 UTC (Wed) by jengelh
In reply to: Omitting extra braces is a boon
Parent article: Implications of pure and constant functions
Allowing mixing of declarations and code the C99/C++ way I consider a disadvantage, because you have to scan the entire function to get to know what variables it will use. And some people write horribly long functions without breaking them up asterisk comes to mind. Having the code go too far to the right is a sign that you should probably break the function (see CodingStyle).
to post comments)