Tabs -vs- Spaces: Tabs should have won.

Thorsten Kampe thorsten at thorstenkampe.de
Sun Jul 17 21:34:04 CEST 2011


* Dotan Cohen (Sun, 17 Jul 2011 22:20:15 +0300)
> 
> On Sun, Jul 17, 2011 at 14:51, Thorsten Kampe <thorsten at thorstenkampe.de> wrote:
> > * Dotan Cohen (Sun, 17 Jul 2011 14:11:40 +0300)
> >> So long as the indentation lines up (which it does, with tabs or
> >> spaces) then I do not see any problem with variable-width.
> >
> >> What are the counter-arguments?
> >
> > Alignment doesn't line up.
> >
> 
> They do with tabs.

Indentation alignment will (because you're using only spaces). Otherwise 
it doesn't align (it can't), simply because of the "variable-width".

For instance (in a variable-width font):

if a == b:
    var123    = 22
    varxyz456 = 333
^^^^          ^^^^^
aligned       not aligned

Thorsten



More information about the Python-list mailing list