[Gllug] vi indenting

Wulf Forrester-Barker wulf.f-b at uhl.nhs.uk
Wed Dec 19 12:41:07 UTC 2001


Pete <pdr at pdr.cx> said:

> I think that makes 3 for the hard tabbers, and 2 for the softies.

I vote for hard tabs - the logic of saying "I'm indenting this one
level, so I'm going to use one tab to do" that appeals to me. I think
it's also easier to transform tabs to spaces where required rather than
going from spaces to tabs - I've done some work on the copy of PHP-Nuke
we use here which was spaced... but the spacing wasn't always
consistent, which makes life difficult.

I'd be interested if anyone has any URLs to good reading material on
different bracing styles. I have been using my own idiosyncratic:

if(xxx)
   {
   ...
   }

and have recently started making use of:

if(xxx) {
   ...
}

However, I'd like to read round the subject a bit more. I have been
reading

http://utvikler.start.no/code/php_coding_standard.html 

which votes for

if(xxx)
{
   ...
}

Wulf

ps. of course, here I'm using spaces, as pressing tab in my mail client
is interpreted as 'jump to the next field'....


wulf.f-b at uhl.nhs.uk 

**********************************************************************
DISCLAIMER:

Any opinions expressed in this email are those of the individual and
not necessarily the Trust. This email and any files transmitted with
it are confidential and intended solely for the use of the individual
or entity to whom they are addressed. Any unauthorised disclosure of
the information contained in this e-mail is strictly prohibited.

The contents of this email may contain software viruses which could
damage your own computer system. Whilst we have taken every
reasonable precaution to minimise this risk, we cannot accept liability
for any damage which you sustain as a result of software viruses.
You should therefore carry out your own virus checks before opening
the attachment.

If you have received this email in error please notify the sender or
postmaster at uhl.nhs.uk. Please then delete this email.

University Hospital Lewisham
Tel: 020 8333 3000
Web: www.uhl.ac.uk 
**********************************************************************


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list