D Style document

Dejan Lekic dejan.lekic at gmail.com
Sat Mar 8 10:15:47 UTC 2025


As many of you probably know, there is a D Style document 
describing proposed style for our D source code.

The document (web page) can be found here: 
https://dlang.org/dstyle.html

My question is regarding the enum values, and (manifest) 
constants. Throughout the druntime for an example, enum values 
and manifest constants are SNAKE_CASE style, while the 
abovementioned document recommends the camelCase for both: 
[Naming 
constants](https://dlang.org/dstyle.html#naming_constants) , 
[Enum members](https://dlang.org/dstyle.html#naming_enum_members)

So, considering that something as critical to us as the druntime 
uses a different style, should we perhaps modify the D Style page 
and change recommended style for constants and enum members to 
SNAKE_STYLE (which I also prefer)?



More information about the Digitalmars-d mailing list