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

Adam Richardson simpleshot at gmail.com
Fri Jun 3 12:21:24 PDT 2011


On Fri, Jun 3, 2011 at 3:04 PM, Daniel Gibson <metalcaedes at gmail.com> wrote:

> Am 03.06.2011 20:54, schrieb Walter Bright:
> > On 4/11/2011 1:31 PM, Nick Sabalausky wrote:
> >> In other words, *some* editors handle space-indentation intelligently
> >> (and
> >> do so by reinventing *tabs*), while *all* editors handle tab-indentation
> >> intelligently.
> >
> > There is no way to handle tabs intelligently.
> >
> > Take a source file that has tab characters in it. There is no algorithm
> > in the world that will discern what the tab size is supposed to be.
> > Heck, I've seen plenty of source files that assume a tab size of X in
> > some sections and Y in others, and Z in still others.
> >
> > The only way to win is to not use tabs.
> >
>
> If you use tabs for indentation and spaces for alignment the tabsize
> doesn't matter.
>

This is my preferred approach, too.

Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110603/8503a07e/attachment.html>


More information about the Digitalmars-d mailing list