On Wed, Feb 05, 2003 at 07:50:33PM +0000, Martin Craig wrote:
> > 4) You introduce spaces instead of a tab at one point
> 
> I think I've fixed these now. Should I be using tabs all the time?

Tabs should be used to logically indent things, not "all the time".

I.e.

void foo()
{
<tab>int i = 5;
<tab>if (i == 6) {
<tab><tab>i = 7;
<tab><tab>i = 8;
<tab>}
}

class urgs {
<tab>void bar(type1 some very long argument list
<tab><spaces.>which should be avoided in general
<tab><spaces.>continued here);
};

The idea is that the code should be readable no matter what the actual size
of the tab expansion is.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to