[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: kdelibs coding style
From:       David Faure <faure () kde ! org>
Date:       2006-08-23 10:21:43
Message-ID: 200608231221.43396.faure () kde ! org
[Download RAW message or body]

On Monday 21 August 2006 21:17, Leo Savernik wrote:
> Am Montag, 21. August 2006 16:44 schrieb Dirk Mueller:
> > for example switch() indenting
> > rules are unclear to me
> 
> While you're at it: I want to mention that Kate's smart indenter handles 
> switches like this:

And I'd like to mention that the xemacs setup we have been using for many years
doesn't indent the case statement, therefore a lot of existing code does NOT indent
the case.

> I. e. the case statement is indented, too. Therefore, I ask the TWG to take 
> into account this existing precedent within KDE. It's less error prone to 
> make the rules match the code instead of the other way round (especially as 
> the rules don't exist yet).

But the rule for case does match a lot of the existing code, you must be looking
at different code than the one that was written by developers using xemacs...

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic