Hi all!

"Geir Magnusson Jr." wrote:
> I support the notion of standardization, but some of the Sun conventions
> are just awful, particularly the bit about ending the method declaration
> with a '{'

Right, code becomes "asymmetrical", and hard to read.

> Futher, I like starting blocks with a { a la
> 
>   if( foo )
>   {
>     <block>
>   }

That looks a lot nicer. Even if the resulting code has more lines, it
can be scanned 17465% faster (though YMMV).

> I know it makes code 'big', but I personally find it easy to read, and
> then if someone adds something, you don't get stuck with the bug
> 
>   if(foo)
>     bar;
> 
> going to
> 
>   if(foo)
>     woogie;
>     bar;
> 
> if they forget to add the braces, which can be a bear to find,
> especially when groggy and tired :)

Sure, and what about

    if (foo);
      bar;

Compare with

    if (foo);
    {
      bar;
    }

which is much easier to spot.

Un saludo,

Alex.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to