You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Guangya Liu (JIRA)" <ji...@apache.org> on 2015/09/17 05:40:46 UTC
[jira] [Assigned] (MESOS-3450) Update Mesos C++ Style Guide for
namespace usage
[ https://issues.apache.org/jira/browse/MESOS-3450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guangya Liu reassigned MESOS-3450:
----------------------------------
Assignee: Guangya Liu
> 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
> Assignee: 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)