Thread: RE: [HACKERS] Source code format vote

RE: [HACKERS] Source code format vote

From
"Ansley, Michael"
Date:
Word is...

Tabs are 8 spaces; not 4, not 2: if your function runs off the end of the
page (screen), sh*t function...

;-)



>> -----Original Message-----
>> From: Theo Kramer [mailto:theo@flame.co.za]
>> Sent: Thursday, December 30, 1999 9:47 AM
>> To: PostgreSQL-development
>> Subject: Re: [HACKERS] Source code format vote
>> 
>> 
>> Bruce Momjian wrote:
>> > 
>> > Current votes are:
>> > 
>> > (8)     8-space tabs:   Tom Lane, Peter E., Massimo, Jan, 
>> Hiroshi, Peter M.,
>> >                         Michael, Tatsuo
>> > (5)     4-space tabs:   Bruce, Andreas, Vince, Vadim, D'Arcy
>> > 
>> > 
>> >         open bracket on if () line:
>> > (7)     yes:    Massimo, Peter, Vince, Tom Lane, Peter M., 
>> Marc, Tatsuo
>> > (6)     no:     Bruce, Vadim, D'Arcy, Jan, Hiroshi, Michael M.
>> > 
>> > Looks like radical change will come to our source code 
>> format for 7.0.
>> > 
>> > Unless someone else speaks up, I will consider this vote 
>> closed.  I will
>> > modify pgindent to reflect this format the next time it is run.
>> 
>> Don't know if I qualify to vote - but if I do then I vote 
>> for 4-space tabs 
>> (seeing that I often read the code - now if only two-space tabs 
>> were an option...)
>> --------
>> Regards
>> Theo
>> 
>> ************
>> 


Re: [HACKERS] Source code format vote

From
Adriaan Joubert
Date:
"Ansley, Michael" wrote:

> Word is...
>
> Tabs are 8 spaces; not 4, not 2: if your function runs off the end of the
> page (screen), sh*t function...

Yep, I agree. No point in trying to change the standard size of a tab (i.e.
8 spaces). How you indent your C-code is a different matter: it is possible
to indent C-code with spaces instead of tabs ;-). But don't go and change
standards.

I prefer indentation that is not too large so that you can see a whole
function, but couldn't care less whether it is 2 or 4 spaces.

And no, I definitely don't qualify to vote, but had to butt in anyway....



Re: [HACKERS] Source code format vote

From
Theo Kramer
Date:
>
> Word is...
>
> Tabs are 8 spaces; not 4, not 2: if your function runs off the end of the
> page (screen), sh*t function...
>
> ;-)

Tabs are a relic of the typewriters of yesteryear. They, imo, are outdated,
non-standard from computer to printer to display, and a cause for mindless
debate ;).

Anyway, a call for a vote presumes a democratic process with no coercion...?

Regards
Theo