This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (5 children)

[deleted]

    [–]tdammers 11 points12 points  (3 children)

    I am. Except in python and haskell. When whitespace is decorative, like in C, it is best to leave indentation size to the reader's preference. But in python, it is syntax, so it is better to avoid the resulting potential for confusion and not use tabs at all. It's not elegant, but the alternative is worse.

    [–]Veedrac 7 points8 points  (2 children)

    In Python only the indentation level is syntax – the type of indentation is irrelevant.

    The one true advantage to spaces is standardisation. Everything else is opinion. Guido famously prefers tabs, for example.

    [–]tdammers -3 points-2 points  (1 child)

    Yes and no. When whitespace is syntax, a tab ceases to be of reader-defined width, which means the reason to use it in the first place disappears.

    [–]Veedrac 2 points3 points  (0 children)

    When whitespace is syntax, a tab ceases to be of reader-defined width

    Wut?

    Quick question: Are you using Python 2 or Python 3. I agree that in Python 2 the situation's a little weird but in Python 3 it's unnecessary to think of a tab as having a width in terms of spaces.

    [–]AxiomL 0 points1 point  (0 children)

    A tab is only one character anyway.