Re: Fixing enum names in Phobos

2011-08-04 Thread Jacob Carlborg
On 2011-08-04 07:16, Jonathan M Davis wrote: So, does anyone actually have an opinion on this? Should we fix the names or not? One person has said that they're in favor of fixing the enum names, and pretty much everything else in this thread has been on what to do about renaming the ones which

Re: Fixing enum names in Phobos

2011-08-04 Thread Andrei Alexandrescu
On 8/4/11 12:16 AM, Jonathan M Davis wrote: So, does anyone actually have an opinion on this? Should we fix the names or not? We should probably fix the names. A migration path is to simply keep both names for a year or so and remove documentation for old names. For example: enum Variadic

Re: Fixing enum names in Phobos

2011-08-04 Thread Jonathan M Davis
On Thursday 04 August 2011 07:33:55 Andrei Alexandrescu wrote: On 8/4/11 12:16 AM, Jonathan M Davis wrote: So, does anyone actually have an opinion on this? Should we fix the names or not? We should probably fix the names. A migration path is to simply keep both names for a year or so and

Re: Fixing enum names in Phobos

2011-08-04 Thread Jonathan M Davis
On Thursday 04 August 2011 08:59:11 Jonathan M Davis wrote: On Thursday 04 August 2011 07:33:55 Andrei Alexandrescu wrote: On 8/4/11 12:16 AM, Jonathan M Davis wrote: So, does anyone actually have an opinion on this? Should we fix the names or not? We should probably fix the names. A

Re: Fixing enum names in Phobos

2011-08-04 Thread David Nadlinger
On 8/4/11 5:59 PM, Jonathan M Davis wrote: I think that it would be far better to just fix the names immediately. I'd argue not to touch std.socket though, this would unnecessarily break code that will be broken again (hopefully) soon once std.socket gets replaced. David

Re: Fixing enum names in Phobos

2011-08-04 Thread Jonathan M Davis
On Thursday 04 August 2011 18:01:28 David Nadlinger wrote: On 8/4/11 5:59 PM, Jonathan M Davis wrote: I think that it would be far better to just fix the names immediately. I'd argue not to touch std.socket though, this would unnecessarily break code that will be broken again (hopefully)

Re: Fixing enum names in Phobos

2011-08-04 Thread Andrei Alexandrescu
On 8/4/11 10:59 AM, Jonathan M Davis wrote: On Thursday 04 August 2011 07:33:55 Andrei Alexandrescu wrote: On 8/4/11 12:16 AM, Jonathan M Davis wrote: So, does anyone actually have an opinion on this? Should we fix the names or not? We should probably fix the names. A migration path is to

Re: Fixing enum names in Phobos

2011-08-04 Thread Jonathan M Davis
On 8/4/11 10:59 AM, Jonathan M Davis wrote: On Thursday 04 August 2011 07:33:55 Andrei Alexandrescu wrote: On 8/4/11 12:16 AM, Jonathan M Davis wrote: So, does anyone actually have an opinion on this? Should we fix the names or not? We should probably fix the names. A migration path

Re: Fixing enum names in Phobos

2011-08-03 Thread Jonathan M Davis
On Sunday 31 July 2011 19:30:20 Jonathan M Davis wrote: Okay. Per the current naming conventions in Phobos, enum values are supposed to be camelcased just like any other variable. The enum _type_ is pascal cased just like any other user-defined type, but the values are camelcased. A number of

Re: Fixing enum names in Phobos

2011-08-01 Thread %u
How do you plan on camelCasing pure, nothrow, out, ref, etc?

Re: Fixing enum names in Phobos

2011-08-01 Thread Alex Rønne Petersen
On 01-08-2011 04:30, Jonathan M Davis wrote: Okay. Per the current naming conventions in Phobos, enum values are supposed to be camelcased just like any other variable. The enum _type_ is pascal cased just like any other user-defined type, but the values are camelcased. A number of the older

Re: Fixing enum names in Phobos

2011-08-01 Thread KennyTM~
On Aug 1, 11 13:56, %u wrote: How do you plan on camelCasing pure, nothrow, out, ref, etc? pure_, nothrow_, out_, ref_ pureAttribute, nothrowAttribute, outAttribute, refAttribute

Re: Fixing enum names in Phobos

2011-08-01 Thread Jonathan M Davis
On Monday 01 August 2011 08:26:26 Alex Rønne Petersen wrote: As for std.compiler.Vendor: I'm not sure if renaming these is a good idea. On one hand, there's consistency, but on the other hand, you'd probably want actual project/product/company names like that to be spelled correctly... That's

Re: Fixing enum names in Phobos

2011-08-01 Thread Jonathan M Davis
On Monday 01 August 2011 15:02:54 KennyTM~ wrote: On Aug 1, 11 13:56, %u wrote: How do you plan on camelCasing pure, nothrow, out, ref, etc? pure_, nothrow_, out_, ref_ pureAttribute, nothrowAttribute, outAttribute, refAttribute Yeah. Something like that. You'd have to add a prefix or a

Re: Fixing enum names in Phobos

2011-08-01 Thread Alex Rønne Petersen
On 01-08-2011 09:39, Jonathan M Davis wrote: On Monday 01 August 2011 15:02:54 KennyTM~ wrote: On Aug 1, 11 13:56, %u wrote: How do you plan on camelCasing pure, nothrow, out, ref, etc? pure_, nothrow_, out_, ref_ pureAttribute, nothrowAttribute, outAttribute, refAttribute Yeah. Something

Re: Fixing enum names in Phobos

2011-08-01 Thread Jonathan M Davis
On Monday 01 August 2011 10:00:01 Alex Rønne Petersen wrote: On 01-08-2011 09:39, Jonathan M Davis wrote: On Monday 01 August 2011 15:02:54 KennyTM~ wrote: On Aug 1, 11 13:56, %u wrote: How do you plan on camelCasing pure, nothrow, out, ref, etc? pure_, nothrow_, out_, ref_

Re: Fixing enum names in Phobos

2011-08-01 Thread KennyTM~
On Aug 1, 11 16:00, Alex Rønne Petersen wrote: On 01-08-2011 09:39, Jonathan M Davis wrote: On Monday 01 August 2011 15:02:54 KennyTM~ wrote: On Aug 1, 11 13:56, %u wrote: How do you plan on camelCasing pure, nothrow, out, ref, etc? pure_, nothrow_, out_, ref_ pureAttribute,

Re: Fixing enum names in Phobos

2011-08-01 Thread Mehrdad
On 8/1/2011 2:15 AM, KennyTM~ wrote: In .NET (almost) everything is CapitalCamelCased :D lol, it's called PascalCased. :P +1 for PascalCasing. It solves the keyword-ness issue.

Re: Fixing enum names in Phobos

2011-08-01 Thread Michal Minich
On Mon, 01 Aug 2011 05:56:22 +, %u wrote: How do you plan on camelCasing pure, nothrow, out, ref, etc? simply add exception to the camelCase rule: if word is keyword, use PascalCase. IMO, easier to remember and to the eyes than any kind of ad-hoc pre/sufix.

Fixing enum names in Phobos

2011-07-31 Thread Jonathan M Davis
Okay. Per the current naming conventions in Phobos, enum values are supposed to be camelcased just like any other variable. The enum _type_ is pascal cased just like any other user-defined type, but the values are camelcased. A number of the older parts of Phobos do not follow this convention.