[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: inefficient QString coding practice
From: Tobias Koenig <tokoe () kde ! org>
Date: 2004-03-14 14:34:42
Message-ID: 20040314143442.GA15679 () ghostdog
[Download RAW message or body]
On Sun, Mar 14, 2004 at 03:03:07PM +0100, Lars Knoll wrote:
> On Saturday 13 March 2004 20:05, Tobias Koenig wrote:
Hi Lars,
> > > if(str == QLatin1String("foo")) { ... }
> >
> > Hmm, and you think the lazy developer will type 'QLatin1String' for
> > every short "foobar" string?!?
> > Can't we use a shorter name? Such a long name disturbs the whole code
> > layout.
>
> Currently we have QString::fromLatin1(...). Is that better?
No, and that's the only reason why I never use it ;)
> You can always use a typedef if you think the length is really disturbing. I
> still prefer long but descriptive names to short but unclear ones.
me too, but not when you have to write it that often like this one.
Ciao,
Tobias
--
Separate politics from religion and economy!
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic