On Tue, 2012-08-21 at 10:27 +0200, Stephan Bergmann wrote:
Yes, using braces is one notable case where I deliberately deviate from
existing practice in a given file.
:-)
Anyway, even if we agree to disagree here
I think that's likely ;-)
the devilishly deceiving cases I remember all involved if-sans-braces
which originally covered a single statement plus comment (as above), so
maybe we can agree that at least in such cases it doesn't harm to add
redundant braces.
Totally with you:
if (pUnobvious)
{
// this is something complicated - wake up !
**((int **)pUnobvious) = 42;
}
looks rather sensible to me :-)
ATB,
Michael.
--
michael.meeks@suse.com <><, Pseudo Engineer, itinerant idiot
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.