This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
In my Godot C module, I have some code in a header file that looks something like this:
namespace CompanyName
{
namespace GameName
{
namespace Actors
{
class Character
{
//...
};
};
};
};
I'm a little worried that this is too many namespaces, and the class name will be to difficult to type out because of it. (CompanyName::GameName::Actors::Character
would have to be everywhere the class is used)
On the other hand, I need these namespaces to differentiate my code from third party code, this particular game's code from the code of one of my other games, and this specific part of the game's code from other parts of its code.
Which namespaces should I leave out (if any at all)?
Subreddit
Post Details
- Posted
- 4 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/AskProgramm...