debug a reserved keyword (even for enums?)

Nick Treleaven nick at geany.org
Mon Apr 13 11:48:46 UTC 2026


On Monday, 13 April 2026 at 11:03:52 UTC, Quirin Schroll wrote:
> On Saturday, 11 April 2026 at 09:55:49 UTC, Nick Treleaven
>> 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.

`std.meta` uses PascalCase for symbols that may be (but are not 
known to be) types, notably `AliasSeq`:
https://dlang.org/phobos/std_meta.html


More information about the Digitalmars-d mailing list