Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82103

Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?

From Ben Finney <ben+python@benfinney.id.au>
Subject Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?
Date 2014-12-08 15:52 +1100
References <CAFaCOgxq6jp5bDXcKvXztAXdwxTOBoYRmEf2v4g_1nAYwJutGw@mail.gmail.com> <m635bj$n5g$1@ger.gmane.org> <CAFaCOgxknjCTkQB1q0WNZu+sdsX+uUFVtTqLeqh=HUG0cS2bXA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.16706.1418014504.18130.python-list@python.org> (permalink)

Show all headers | View raw


Aahan Krish <krish@aahan.me> writes:

> It's just that I don't like arbitrary rules. IMHO, spaces aren't
> "better than" tabs, and people should refrain from saying that.

Simplicity has value.

The rule “use four spaces for indentation” is simple to stick to, and
simple to obtain sane display results by default.

Using U+0009 characters for indentation is objectively more complex,
because of the addition of all the special treatment of U+0009
characters, and especially the admonitions needed to readers not to use
the attractive editor features of customising U+0009 rendering.

So, you may decide the simplicity is less valuable than the ability to
change the rendering of this special U+0009 character. But, if one
values that simplicity, then U+0020 characters *are* better than U+0009
characters for indentation.

So, no, I will not refrain from saying that.

-- 
 \       “You can be a victor without having victims.” —Harriet Woods, |
  `\                                                         1927–2007 |
_o__)                                                                  |
Ben Finney

Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces? Ben Finney <ben+python@benfinney.id.au> - 2014-12-08 15:52 +1100
  Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces? wxjmfauth@gmail.com - 2014-12-08 00:18 -0800

csiph-web