Re: D naming style?

2009-09-06 Thread Stewart Gordon
Michel Fortin wrote: Here it is: . My style more or less resembles this, except: - Each indentation level is a tab character (by far the most sensible way to do things) - Usually one blank line between class methods, and two between module-level

Re: D naming style?

2009-09-05 Thread Jeremie Pelletier
Michel Fortin Wrote: > On 2009-09-04 21:07:01 -0400, Jarrett Billingsley > said: > > > On Fri, Sep 4, 2009 at 8:42 PM, Ali Cehreli wrote: > >> Is there a common(-ish) naming style for D? > >> > >> - camel case or underscores within words of names? > >> > >> - type names begin with capital? >

Re: D naming style?

2009-09-05 Thread Jeremie Pelletier
bearophile Wrote: > Jarrett Billingsley: > > 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 enou

Re: D naming style?

2009-09-05 Thread Leandro Lucarella
Jarrett Billingsley, el 4 de septiembre a las 22:53 me escribiste: > On Fri, Sep 4, 2009 at 10:14 PM, bearophile wrote: > > Jarrett Billingsley: > >> I'm consistently confused by D (and Java and C#) code that doesn't > >> indicate member names, especially when they're named really common > >> thin

Re: D naming style?

2009-09-05 Thread Michel Fortin
On 2009-09-04 21:07:01 -0400, Jarrett Billingsley said: On Fri, Sep 4, 2009 at 8:42 PM, Ali Cehreli wrote: Is there a common(-ish) naming style for D? - camel case or underscores within words of names? - type names begin with capital? - underscore before or after member names? - enum valu

Re: D naming style?

2009-09-04 Thread Christopher Wright
Jarrett Billingsley wrote: On Fri, Sep 4, 2009 at 9:18 PM, Ali Cehreli 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+

Re: D naming style?

2009-09-04 Thread Jarrett Billingsley
On Fri, Sep 4, 2009 at 10:14 PM, bearophile wrote: > Jarrett Billingsley: >> 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. U

Re: D naming style?

2009-09-04 Thread bearophile
Jarrett Billingsley: > 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,

Re: D naming style?

2009-09-04 Thread Jarrett Billingsley
On Fri, Sep 4, 2009 at 9:18 PM, Ali Cehreli 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

Re: D naming style?

2009-09-04 Thread Ali Cehreli
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

Re: D naming style?

2009-09-04 Thread Jarrett Billingsley
On Fri, Sep 4, 2009 at 8:42 PM, Ali Cehreli wrote: > Is there a common(-ish) naming style for D? > > - camel case or underscores within words of names? > > - type names begin with capital? > > - underscore before or after member names? > > - enum values lowercase? > > - constant names? > > - etc.?

D naming style?

2009-09-04 Thread Ali Cehreli
Is there a common(-ish) naming style for D? - camel case or underscores within words of names? - type names begin with capital? - underscore before or after member names? - enum values lowercase? - constant names? - etc.? :) Do you have a document that you would like to share? Thank you, Al