PROPOSAL: open and close brace optional for single statement try, catch, finally, method declaration
Howard Lovatt
howard.lovatt at iee.org
Mon May 18 00:35:36 PDT 2009
I personally use Jalopy for this purpose, so for me it isn't a
problem. However if numerous tools exist to make sure you don't make a
mistake then it is probably a sign that their is a problem with the
language construct.
-- Howard.
2009/5/16 Tom Ball <tball at google.com>:
> At Google braces are compulsory for the reasons you state, although we use
> code-reviews rather than language changes to enforce it. I strongly
> encourage engineering teams to investigate the use of existing tools to help
> them "ratchet up" their source code quality. CheckStyle, for example, can
> also be used as a preprocessor or VCS check-in verifier step to verify that
> braces are always used.
>
> Tom
>
> On Fri, May 15, 2009 at 12:34 AM, Howard Lovatt <howard.lovatt at iee.org>
> wrote:
>>
>> I would go the other way and make braces compulsory in all cases
>> including single line blocks for if, while, etc. I say this because I
>> have found missing braces to be a source of errors, particularly for
>> newbies.
>>
>> -- Howard.
>>
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
--
-- Howard.
More information about the coin-dev
mailing list