Exceptional coding style

simendsjo simendsjo at gmail.com
Thu Jan 17 23:21:47 PST 2013


On Friday, 18 January 2013 at 06:45:37 UTC, Mehrdad wrote:
> On Friday, 18 January 2013 at 05:41:00 UTC, Artur Skawina wrote:
>> This is one of the reasons why automatic code formatting is 
>> such a bad idea.
>>
>> artur
>
>
>
> In what language? In C# it's actually a fantastic idea.

Well.. :)
enum E
{
   S      = 0x01,
   Longer = 0x10,
}

After:
enum E
{
   S = 0x01,
   Longer = 0x10,
}

Any manual formatting like lining up arguments is always lost. 
Following the recommended style guide for a language by hand 
isn't that big a feat, and allows to break it where you feel your 
own style is superior.


More information about the Digitalmars-d mailing list