[webkit-dev] Style guide should mention that we don't use anonymous namespace

Darin Adler darin at apple.com
Wed Oct 19 15:45:19 PDT 2011


The guideline is not to disallow anonymous namespaces.

It’s to prefer “static” over anonymous namespaces when either one would work.

Debugging tools on at least some of the platforms work better with functions that are given internal linkage by using the “static” keyword rather than functions that are inside anonymous namespaces.

On the other hand, anonymous namespaces are a more powerful tool that can do more than the “static” keyword can.

    -- Darin



More information about the webkit-dev mailing list