Fatal flaw in D design which is holding back widespread adoption
Walter Bright
newshound1 at digitalmars.com
Tue Mar 30 14:05:01 PDT 2010
Steven Schveighoffer wrote:
> On Tue, 30 Mar 2010 16:56:32 -0400, Walter Bright
> <newshound1 at digitalmars.com> wrote:
>
>> BTW, type a file to a console window. Tabs come out as 8 characters,
>> on Windows, Linux, and OSX.
>
> So do 8 spaces. This is the surest way to make code easily
> viewable/editable anywhere. Just set the "expand tabs" option on your
> favorite editor.
>
> My recommendation is to say indentations are 4 spaces and tabs should
> not be used for indentation.
Sure, that's a good plan. My only objection was with the notion that 8 character
tabs only appear in printers. He's right in that I never print source code
anymore, haven't in decades, but I do type to the screen all the time.
More information about the Digitalmars-d
mailing list