Re: Naming Conventions & Style Guide?

2011-01-23 Thread %u
> I don't know what that abbreviation means. Haha I kind of made that up... just meant "My Mileage *Will* Vary" :) Huh, I never noticed the keyword conflict; that's totally legitimate, although personally I'd prefer PascalCased. But I don't like the "related to the language" idea; it shouldn't b

Re: Naming Conventions & Style Guide?

2011-01-23 Thread Andrej Mitrovic
On 1/23/11, %u wrote: > Yeah, MMWV. :] Men are from Mars, Women are from Venus? :D I don't know what that abbreviation means. I think some enums are in all caps because they're a workaround for not being able to use e.g. "in" in a TypeTuple, so they're kind of special. Specifically I saw that:

Re: Naming Conventions & Style Guide?

2011-01-23 Thread Jonathan M Davis
On Sunday 23 January 2011 03:22:36 spir wrote: > On 01/23/2011 06:28 AM, Jonathan M Davis wrote: > > The problem is that constants are used all over the place in D - far more > > than you'd use in most other languages (primarily because of CTFE, I > > belive). If you use all-caps for stuff like enu

Re: Naming Conventions & Style Guide?

2011-01-23 Thread spir
On 01/23/2011 06:28 AM, Jonathan M Davis wrote: The problem is that constants are used all over the place in D - far more than you'd use in most other languages (primarily because of CTFE, I belive). If you use all-caps for stuff like enums, then you're constantly using variables which are all in

Re: Naming Conventions & Style Guide?

2011-01-23 Thread spir
On 01/23/2011 06:05 AM, %u wrote: Hmm.. I thought naming enums with capital letters was a standard thing in D land. I prefer them that way since they're constants, and since I almost always use a tag for an enum I never mistake it for anything else. YMMV. Huh, I guess now I see why they are the

Re: Naming Conventions & Style Guide?

2011-01-22 Thread Jonathan M Davis
On Saturday 22 January 2011 20:51:47 Andrej Mitrovic wrote: > Hmm.. I thought naming enums with capital letters was a standard thing > in D land. I prefer them that way since they're constants, and since I > almost always use a tag for an enum I never mistake it for anything > else. YMMV. The prob

Re: Naming Conventions & Style Guide?

2011-01-22 Thread %u
> Hmm.. I thought naming enums with capital letters was a standard thing in D land. I prefer them that way since they're constants, and since I almost always use a tag for an enum I never mistake it for anything else. YMMV. Huh, I guess now I see why they are the way they are. :) At first I wrappe

Re: Naming Conventions & Style Guide?

2011-01-22 Thread Andrej Mitrovic
Hmm.. I thought naming enums with capital letters was a standard thing in D land. I prefer them that way since they're constants, and since I almost always use a tag for an enum I never mistake it for anything else. YMMV.

Re: Naming Conventions & Style Guide?

2011-01-22 Thread Jonathan M Davis
On Saturday 22 January 2011 15:58:47 %u wrote: > Is there any particular reason that Phobos uses ALL_CAPS (such as > FunctionAttributes.NOTHROW) and PascalCase (such as Endian.BigEndian) for > enums, and yet the D Style Guide recommends lowerCamelCase? Differences in who wrote the code and when. S

Naming Conventions & Style Guide?

2011-01-22 Thread %u
Is there any particular reason that Phobos uses ALL_CAPS (such as FunctionAttributes.NOTHROW) and PascalCase (such as Endian.BigEndian) for enums, and yet the D Style Guide recommends lowerCamelCase?