Suggestion for a mixed camelCase & PascalCase notation

Jonathan M Davis jmdavisProg at gmx.com
Sat Jun 1 13:55:21 PDT 2013


On Saturday, June 01, 2013 21:58:27 D-Sturbed wrote:
> Hello, I know that everybody will hate that, as most of the
> people coming to D are also coming from the C world, but, anyway
> I suggest this data naming convention:

This is essentially hungarian notation, which has widely been determined to be 
bad practice and which our style guide specifically calls out _against_:

http://dlang.org/dstyle.html

Marking a variable with something about what it's for makes sense. Marking it 
with something about its type is counter-productive.

Regardless, I really don't think that we're going to change our naming 
conventions at this point. Doing so would either break a lot of code or result 
in all of our new stuff having different naming conventions from our old stuff, 
and we don't want to do either.

- Jonathan M Davis


More information about the Digitalmars-d mailing list