[OT] Spaces/tabs (Was: simple display (from: GUI library for D))

Nick Sabalausky a at a.a
Mon Apr 11 21:49:42 PDT 2011


"Jonathan M Davis" <jmdavisProg at gmx.com> wrote in message 
news:mailman.3412.1302578409.4748.digitalmars-d at puremagic.com...
>> On 04/11/2011 08:13 AM, Jonathan M Davis wrote:
>> > They mix tabs and spaces. On some lines, they use spaces and on others
>> > they use tabs.
>>
>> Never seen this, not even once. Messing can only happen when one
>> copy-pastes from modules using spaces.
>
> As Steve pointed out, it frequently happens when you have multiple 
> developers
> working on the same code. It may work with one developer who likes using 
> tabs,
> but as soon as you get a mix of developers, you invariably get a mix of 
> spaces
> and tabs unless _everyone_ involved is really careful, and that rarely
> happens. It's just too easy to use spaces without realizing that someone 
> else
> used tabs or even that you yourself are using spaces, depending on your
> editor's settings.
>

That applies the other way around, too.

> Using only spaces and no tabs avoids the entire issue...

It avoid the issue *as well as* using only tabs for indentation.




More information about the Digitalmars-d mailing list