Re: tabs in source code

[prev] [thread] [next] [lurker] [Date index for 2006/06/19]

From: Martin Ebourne
Subject: Re: tabs in source code
Date: 22:31 on 19 Jun 2006
On Mon, 2006-06-19 at 16:14 -0500, Jeremy Weathers wrote:
> I hate multiple spaces in source code when a single tab does the job
> of indenting the code just fine.

Tabs/spaces whatever. There's not a single tool that will misformat code
only using spaces, whereas the majority of tools will need to be set up
to show tabs correctly, and that's assuming the indentation levels
across all of the code bases you use are consistent.

Sure that doesn't matter if tabs are used for nested indentation and
spaces for formatting, but unless you wrote the code yourself (or the
code's author was anal retentive) the chances of that are approximately
0%.

Spaces it is, for portability sakes. Unless you're not being portable of
course in which case be happy, you've got life easy.

> Please convert your spaces into tabs if you think anyone will ever
> want/need to edit your code.

Or just get an editor that deals with whatever crap you throw at it in a
consistent manner without giving you shit. If yours doesn't, then hate
your editor (and get a better one!).

Cheers,

Martin.

There's stuff above here

Generated at 20:01 on 27 Jun 2006 by mariachi 0.52