[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: kdelibs coding style
From: Nicolas Goutte <nicolasg () snafu ! de>
Date: 2006-08-21 19:52:40
Message-ID: 200608212152.40319.nicolasg () snafu ! de
[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:
>
> switch(bla) {
> case 1:
> doWhat();
> break;
> case 2:
> case 3:
> doAgainWhat();
> break;
> default:;
> }
How does it handle:
case 1:
{
doWhat();
break;
}
>
> 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).
>
> mfg
> Leo
Have a nice day!
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic