[webkit-dev] Incremental steps towards moving WebCore/platform out of WebCore
abarth at webkit.org
Thu Dec 15 10:27:00 PST 2011
On Thu, Dec 15, 2011 at 8:22 AM, Darin Adler <darin at apple.com> wrote:
> The namespace name Platform is OK.
> I’m concerned that this is over-use of namespace and will make WebCore code overall harder to read. One of the notable features of the classes in the platform directory is that they fit in smoothly and are easy to use in WebCore. Being in the same namespace as the rest of WebCore is part of that.
> If we do use a namespace, we’ll have to decide whether to use it in a conventional way or use it with the “put using in header” technique that we use, somewhat controversially, in WTF.
My inclination is to "put using in the header" for exactly this
reason. I'm hopeful the namespace be useful in preventing
dependencies in the other direction, where WebCore namespaced types
are used in Platform.
More information about the webkit-dev