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

List:       kde-core-devel
Subject:    Re: Namespaces in libkdecore
From:       Matthias Ettrich <ettrich () trolltech ! com>
Date:       2004-05-01 18:49:00
Message-ID: 200405012049.00284.ettrich () trolltech ! com
[Download RAW message or body]

On Saturday 01 May 2004 20:29, Holger Freyther wrote:
> On Saturday 01 May 2004 20:08, Matthias Ettrich wrote:
> >Now that the K prefix
> > is reserved for KDE and new versions of the libraries are released
> > together, where is the benefit?
>
> clean namespaces, clean versioning...
>

Nothing is clean if we assume that people use 'using' anyway. With regards to 
versioning: think about how you would really make use of this. Take libraries 
into account, the fact that ELF already has a version number associated with 
a shared object file, source and binary compatibility and code with 'using' 
directives. Also take readability into account. Even if the namespace is only 
KDE, KDE::LineEdit is a lot harder to work with than KLineEdit (and it makes 
the code look ugly).

Forcing people to add 'using' in every cpp-file, and KDE::FOO::BAR to every 
headerfile is a rather big change, it shouldn't be done without good reasons 
and use-cases that describe how we would benefit from the change in the 
future. "cleaner" is a weak argument for putting additional burden on 
application developers, whereas "easier" would be a strong argument. Having 
said this, "..." is a rather unspecific argument, so I don't know whether 
it's strong or weak :)

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

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