Re: Tabs and spaces
- From
Michael Witten <mfwitten@gmail.com>
- Date
- Apr 21, 2011, 03:15 UTC
- Message-ID
- <BANLkTi=XqynMpRkR=cRMTXYjr+p=Jxt=Ng@mail.gmail.com>
- In-Reply-To
- <20110421021825.GA23373@elie>
On Thu, Apr 21, 2011 at 02:18, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 6 quoted lines
> Michael Witten wrote: > >> You just need an editor that [...] > > which many contributors don't have (or haven't configured that way). > Really.
to which I already said: "if your text editor can't do that, then any style of indentation/alignment is going to be painful."
Show 19 quoted lines
>
> [...]
>> However, with a tabstop of 2, it looks like this:
>>
>> if (foo && bar && baz &&
>> qux && quux) {
>> ...
>> } else if (quuux(quuuux, quuuuux,
>> long_expresion_comes_here(quuuuuux))) {
>> ...
>> }
>>
>> Notice that your `qux && quux' line (which follows the method we both like)
>> remained nicely aligned, but your `long_expression_comes_here' line has
>> moved back so much that it doesn't even satisfy the `right margin' rule
>> anymore.
>
> Oh, I still think a tabstop of 2 is insane (for various reasons, some
> explained in the thread you mentioned).That's not really the point, though, is it.
> No matter --- Junio will use --whitespace=fixup to convert your spaces > to tabs anway.
Good!
That means I can be satisfied with having written sane patches, and Junio can be satisfied with having forced the insane use of tabs. It's a win-win :-D