ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@ebinteractive.com.au>
Subject RE: Proposed way to make ${} happen at runtime
Date Mon, 11 Sep 2000 03:13:54 GMT
Barrie,

> From: Barrie Treloar [mailto:Barrie.Treloar@camtech.com.au]
>
> My only comment is: Is there any coding standard for Jakarta projects?
> I'm just being nit picky on the use of {} for all if/else statements
> even if they are one line bodies.
>

The Jakarta projects are supposed to follow the Sun coding standard which
states

Note: if statements always use braces {}. Avoid the following error-prone
form:

if (condition) //AVOID! THIS OMITS THE BRACES {}!
    statement;

Personally, I agree with this convention but not with others in that
document.

Cheers
Conor (hoping to avoid a brace war :-)



Mime
View raw message