Howard wrote:
"benben" <be******@yahoo.com.au> wrote in message
news:44**********************@news.optusnet.com.au ... Is there an effort to unify the c++ coding standard? Especially identifier
naming.
Not a big issue but it would be annoying to have to incorporate different
coding styles simultaneously when using more than one library. The
standard library seems to have everything lower-cased while a lot of other
libraries do their own way.
Ben
I hope not, because it seems that everyone has at least a _slightly_
different coding style. (And we all KNOW that my coding style is the only
proper one!) :-)
-Howard
I might not have made myself very clear in my post. And let me clarify.
I don't mind different styles--that's how you learn from other people.
But, no matter what style you are coding in, it must be consistent. That
is, you follow a certain rule, whatever it is, to name identifiers and
format your code throughout.
But this is very difficult because you eventually may have to use some
libraries that follow different styles. It is not the coding style as a
whole that is troublesome, but the way the public interface is named and
formatted can be significant.
What is in my mind is that perhaps we should (would) at least name our
public interface in a consistent way with other libraries so when more
than one libraries are used the user would at least have consistent user
code.
And you can still keep your personality in your local code as long as it
is not in the public interface. This is more than just pure aesthetics.
It is more about readability.
Regards,
Ben