On 2011-03-30 15:27, Andrei Alexandrescu wrote: > On 3/30/11 5:24 PM, bearophile wrote: > > Andrei: > >> Beyond naming: > > Some standard for member attributes? Like m_something, etc? I don't like > > this a lot, but having a style guide on this too is useful for Phobos > > (and user code). > > > > Bye, > > bearophile > > I usually prepend private data members with an underscore.
That's what std.datetime and std.file do. Regardless, member variables often need a different naming scheme from normal variables thanks to properties that have the same name. That can go in the style guide, but I don't think that the naming scheme for private member variables or local variables is as important as the public ones, since they're part of the API. It would still be good to be consistent (like it's good to be consistent with braces), but when it comes to names, the primary concern is the public API. - Jonathan M Davis
