Guangya Liu created MESOS-3450:
----------------------------------

             Summary: Update Mesos C++ Style Guide for namespace usage
                 Key: MESOS-3450
                 URL: https://issues.apache.org/jira/browse/MESOS-3450
             Project: Mesos
          Issue Type: Bug
          Components: documentation
    Affects Versions: 0.26.0
            Reporter: Guangya Liu
             Fix For: 0.26.0


Discussed with [~bmahler] , the current C++ style guide do not including the 
usage for namespace, we need to update the document to tell developers how to 
use namespace for future coding.

In general we avoid 'using namespace foo' statements as it is not explicit 
about which symbols are pulled in, and it can often pull in a lot of symbols, 
which sometimes lead to conflicts.

we're going to need namespace aliases to help pull in subnamespaces, e.g. 
namespace http = process::http; but this isn't in the style guide yet, we need 
to update the style guide to reflect this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to