indent style for D

Jonathan M Davis jmdavisProg at gmx.com
Sun Jan 29 01:49:07 PST 2012


On Sunday, January 29, 2012 10:15:25 Gour wrote:
> Hello!
> 
> It was mentioned in #D that gdc will probably adapt its code to GNU code
> style and I wonder, seeing no recemmendation in
> http://www.d-programming-language.org/dstyle.html in regard to
> indent-style, can someone shed some light what is recommended practice
> for it within D community?

What about it? That page clearly says no tabs and that each indentation level 
is 4 spaces. What else do you want to know?

In Phobos braces, go on their own line (the D style page does need to be 
updated with that information), but that's not necessarily the practice of the 
community at large. So, if _that's_ what you're looking for in terms of 
indentation information, there you go. But I really don't know what you'd want 
to know beyond the number of spaces to indent and whether to use tabs when you 
ask about indentation style.

- Jonathan M Davis


More information about the Digitalmars-d mailing list