Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 04/13/2012 10:24 AM, Tor Lillqvist wrote:
On the other hand, any kind of duplication is always bad, isn't it, as
is inconsistency. So isn't it, from that point of view, bad that some
percentage of the source files contain those "using" statements
(duplication), some a subset of them (inconsistency), others not, some
use ::rtl::foo, others rtl::foo, etc etc. Any changes that would make
the coding style more consistent and less verbose would be good in my
opinion.

Inconsistency in this area is a direct consequence of C++'s somewhat TIMTOWTDI approach how to write names for things. More consistent usage of using directives across the code base would definitely not hurt. But if you wanted to enforce consistency, you would need to abandon namespaces. (And note that Lubos' proposal would not automatically eliminate inconsistency, either, as writing "rtl::OUString" would technically still be allowed.)

Stephan

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.