Inconsistent coding style in code examples

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Feb 10 13:14:36 PST 2015


On 2/10/15 1:13 PM, Andrei Alexandrescu wrote:
> On 2/10/15 12:57 PM, H. S. Teoh via Digitalmars-d wrote:
>> This PR:
>>
>>     https://github.com/D-Programming-Language/phobos/pull/2973
>>
>> introduces a code example with 2-space indentation, whereas the rest of
>> Phobos and dlang.org uses 4-space indentation.
>>
>> I don't like this. It's inconsistent, and is detracting from the
>> professional look of D. It's bad enough that we are inconsistent from
>> one page to another, it's even worse that this PR introduces a style
>> inconsistency within a *single* doc page. It makes D look amateurish and
>> unprofessional.
>
> Yah, I've adjusted spacing. That kind of change must be done wholesale
> if we commit to it. -- Andrei

Forgot: 
https://github.com/D-Programming-Language/phobos/commit/38802decf57fb6e1ca81c7ee72d9b6635c0d22af


More information about the Digitalmars-d mailing list