On 11/4/06, Daniel C. <[EMAIL PROTECTED]> wrote:
I think that

if (foo) { do something }

looks quite nice.  For multi-line statements though,

if (foo) {
    do_this;
    do_that;
}

is the only way to do things.

Yeah, I really don't think it is the _only_ way to do things.  As was
mentioned above, personal preference plays a big part.  For me
personally, the following is more readable

if(foo)
{
   do_this;
   do_that;
}

Even though this is my personal preference, I will freely grant that
it isn't the _only_ way.  Coding style is something that someone will
always disagree with, no matter what style is chosen.  since both ways
are syntactically correct I can agree to disagree about which one is
"better" (and write a vim script to change a file to the way I like)
:-)

--
Alex Esplin

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to