debug a reserved keyword (even for enums?)

Quirin Schroll qs.il.paperinik at gmail.com
Mon Apr 13 11:03:52 UTC 2026


On Saturday, 11 April 2026 at 09:55:49 UTC, Nick Treleaven wrote:
> On Saturday, 11 April 2026 at 09:40:32 UTC, Kagamin wrote:
>> Use pascal case.
>
> The (optional) D style guide doesn't clearly forbid that, but 
> I'm pretty sure it's against the spirit of it. Capitalized 
> names are for types (or a symbol which could be a type). Enum 
> members are values.

Minor correction: I’ve heard and observed the opposite: It should 
be PascalCase if it’s definitely (or at least usually) a type, 
not if it merely might be one.



More information about the Digitalmars-d mailing list