Namespaces, file names,...
mta at umich.edu
Fri Sep 5 13:02:28 EDT 2014
On Sep 5, 2014, at 11:26 AM, Buddha Buck <blaisepascal at gmail.com> wrote:
> When every method name has to be Hungarian-notated to work with
> pseudonamespaces, short namespace abbreviations make sense.
> But with true namespaces, using directives, and namespace aliasing
> available in C++, I see benefits in readability to use full length names
> for namespaces (like GnuCash::Account instead of gncAccount or
> Gnc::Account. There's less likelyhood of collision with, say, a library
> written to support the General Nutrition Centers (GNC) chain of stores.
> While I personally prefer snake_case to camelCase, I think that the
> idiomatic C++ tends to use camelCase.
I agree with both points. I think the namespace name should be spelled out in full and camel case is more often used in C++. I happen to prefer it, but perhaps that’s just because I’ve used it more.
More information about the gnucash-devel