Fixing enum names in Phobos

Jonathan M Davis jmdavisProg at gmx.com
Mon Aug 1 00:36:05 PDT 2011


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 why I just followed the pascal case
> convention in my patches.

That's a case where there's a decent argument for not camelcasing them - 
though Unknown should probably be changed to unknown. And since it's brand 
new, it wouldn't even break any code to do that. Though of course, there's 
still the issue of whether or not std.compiler should be deprecated in favor 
of just using core.rt.compiler. But regardless of where the enum ends up, the 
naming issue is still the same.

- Jonathan M Davis


More information about the Digitalmars-d mailing list