D naming style?
Jarrett Billingsley
jarrett.billingsley at gmail.com
Fri Sep 4 18:40:07 PDT 2009
On Fri, Sep 4, 2009 at 9:18 PM, Ali Cehreli<acehreli at yahoo.com> wrote:
> Thank you!
>
> Jarrett Billingsley Wrote:
>> Many people don't indicate class members with any kind of decoration
>
> I noticed that too. :)
>
> The justification that I've come up with is that, we need the decoration in e.g. C++, because the member declaration is not visible in the implementation file, so the decoration communicates that the member is in the header file.
>
> That's not the case in D, so there is no need for the decoration; but I miss them too. :)
I'm consistently confused by D (and Java and C#) code that doesn't
indicate member names, especially when they're named really common
things that often conflict with local variables, like "len" or "src"
or such. Unless the type is small enough to fit on a single screen,
it's easy to forget the member names.
More information about the Digitalmars-d
mailing list