Exceptional coding style

deadalnix deadalnix at gmail.com
Thu Jan 17 23:57:03 PST 2013


On Friday, 18 January 2013 at 07:21:48 UTC, simendsjo wrote:
> 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.

That is completely wrong.


More information about the Digitalmars-d mailing list