Review of std.net.isemail part 2

Jacob Carlborg doob at me.com
Thu Mar 31 09:18:07 PDT 2011


On 2011-03-31 01:12, Jonathan M Davis wrote:
> 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

I think this is only valid if the member variables have a corresponding 
getter/setter with the same name.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list