[Gllug] vi indenting

Alex Hudson home at alexhudson.com
Wed Dec 19 16:17:20 UTC 2001


On Wed, 2001-12-19 at 15:41, Tom Gilbert wrote:
> > I agree 100%. Anyone using anything to indent other than tabs should be
> > shot. Space signifies separation, tabs signify layout. You can move
> > tabs. Tabs are fantastic.
> 
> Shoot me, tabs suck :)

So long as you realise you're wrong, that's fine :))

I disagree with your reasonable identing argument though (when people
use spaces I find they tend to create bigger & more complex loops) - but
I also disagree with people mixing tabs & spaces. Do it one way, stick
with it. Tabs rule, spaces suck, but tabs & spaces is heresy. People who
can't make up their mind should be shot. Possibly.

> Of course, we can make stupid "xxx rules, yyy sucks" comments all day

Mine aren't serious, though - I think my proclamation of it being fact
denoted that :)

> Personally, it depends on the language I'm using. In C, I use this
> style, because I find it fits the language better:
> 
> <snip icky code :P >

I personally agree with Linus on this matter:

function foo (..)
{
	if (x) {
		...
	} else {
		...
}

I think it also depends on how long you've been coding (styles change
over the years), as well as personal preference. I personally tend to
space things out a lot more horizontally than most people as well (see
above), and I'm probably in a smaller minority doing that...

Cheers,

Alex.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20011219/ee51dcad/attachment.pgp>


More information about the GLLUG mailing list