indent style for D

Marco Leise Marco.Leise at gmx.de
Sun Jan 29 11:13:46 PST 2012


Am 29.01.2012, 12:43 Uhr, schrieb Jonathan M Davis <jmdavisProg at gmx.com>:

> On Sunday, January 29, 2012 12:34:22 Gour wrote:
>> On Sun, 29 Jan 2012 12:21:35 +0100
>>
>> Alex Rønne Petersen <xtzgzorex at gmail.com> wrote:
>> > Phobos generally uses 4-space indentation.
>>
>> That is mentioned in the style-guide, but I'm curious about bracing,
>> iow, GNUstyle, K&R, ANSI...?
>
> Phobos uses Allman:  
> http://en.wikipedia.org/wiki/Indent_style#Allman_style
>
> But everyone is free to format their code how they like. Personally, I've
> never understood how anyone can stand anything other than Allman, but to  
> each
> their own, I suppose.
>
> - Jonathan M Davis

I have 31 visible lines of code in Eclipse, I need to conserve some space.  
Otherwise I like that style and use it for top-level struct/class  
declarations.


More information about the Digitalmars-d mailing list