Alexander Rukletsov created MESOS-2488:
------------------------------------------

             Summary: Come up with namespace rules and get them into the style 
guide
                 Key: MESOS-2488
                 URL: https://issues.apache.org/jira/browse/MESOS-2488
             Project: Mesos
          Issue Type: Task
            Reporter: Alexander Rukletsov
            Priority: Minor


Our codebase is a bit inconsistent about whether we put an extra newline 
between namespace openings and closings. The rule we (mostly) apply is: group 
namespace beginnings if they are closed together, but add and extra new line if 
not. On the other side, we tend not to put extra newlines for namespace endings 
even if they were opened in different places.

Proposed scheme:
{code}
namespace A {
namespace B {

namespace C {
} // namespace C {

namespace D {
} // namespace D {

} // namespace B {
} // namespace A {
{code}



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

Reply via email to