DMD coding style rules?
Daniel Murphy via Digitalmars-d
digitalmars-d at puremagic.com
Wed Apr 16 06:57:36 PDT 2014
"asman" wrote in message news:maojdlxhbwuhxqrmvvjf at forum.dlang.org...
> is there? if so, where is it? Also, I see dmd is written in C++ but still
> uses C style to do stuff eg, printf() instead of cout. Is this why C++
> libraries can increase a lot size (and performance?) of executable which
> current style don't?
There are no formal rules that I'm aware of (unless somebody added them to
the wiki) but the (frontend) code is fairly consistent.
The C-ish style is mostly due to age and Walter's preferences. This has
turned out to be a huge advantage as it makes conversion to D much easier
than C++-style code with heavy stl usage etc.
More information about the Digitalmars-d
mailing list