[phobos] Initial Phobos style guide proposal

Walter Bright walter at digitalmars.com
Thu Mar 31 15:45:55 PDT 2011



On 3/31/2011 1:10 PM, Jonathan M Davis wrote:
> Now, it's fine with me if we don't dictate how member variables are named - as
> long as it's understood that they will not always match the normal naming
> scheme. Personally, I use a leading underscore. I also don't like it when
> there's mixture of styles between private member variables (e.g. some with an
> underscore nad some without), but that's my personal preference. The only
> reason I see to select a style is if we want Phobos to be consistent. But
> while some people think that Phobos should be highly consistent in its styling
> throughout, I don't think that it necessarily matters. What matters is the
> public API. _That_ should strive for consistency, because that affects the
> users of the library. The style of the implementation details does not.
>

I tend to agree that the public API style is far, far more important than the 
implementation details.


More information about the phobos mailing list