> -----Original Message-----
which is what I hate. This is the worst of both worlds. Either use Tabs throughout so that a tab equals an indent and so people can set the tab size to whatever they like or else don't use tabs at all and use explicit spaces. (The usual argument for using tabs relates to the fact that they line up with proportionally spaced fonts but I don't think that worries us does it; I almost always use a fixed font for code display). I would argue in favour of using tabs for indent if it were not for the fact that we already have an enormous amount of code that doesn't and I doubt if we would refuse code that didn't.
Bill Medland
On November 27, 2002 12:45 pm, Medland, Bill wrote:
And what's so bad about mixing spaces and tabs? Using only tabs is (1) hard/impossible to enforce, and (2) still suffers from deviation from the standard. It maybe workable in a company, but not on the internet.
On the other hand, what's the big deal with mixing tabs and spaces? What's the big loss as compared to only spaces? This is just trying to impose (silly) policy on people. As long as we stick to the standard meaning of tab (which is 8, there's no question about it. What do you get when you send a file to the printer? Or open it in a non-customized editor?), there is no need whatsoever to force people into this or that way. And this without a loss for anyone!
Why do people feel a need to force others into certain way of doing things, when the end result is the same?!? This is like forcing people to QWERTY instead of DVORAK... I'm not against standards, I would actually like if we had more uniform looking code, but this is really unnecessary, as it serves no purpose.
"Dimitrie O. Paun" dpaun@rogers.com writes:
There are two problems with tabs: one is that no matter how much we agree that the tab size is 8, some people do change their editor settings and that messes up the code; the other is that it makes diffs harder to read because things don't line up properly due to the extra char in the first column. It's much better to only use spaces (but I'm of course not going to try to enforce that).
On November 27, 2002 04:30 pm, Alexandre Julliard wrote:
Don't get me started! :))) But thinking about it, there is good value in have the code messed up: it tells the user that their editor has an incorrect tab value. Otherwise, they can happily edit the file with a tab setting of 3, insert some tabs, and submit that.
I realized that afterwards. In fact, in a private email I mentioned exactly this problem. I agree that it's better to use only spaces for these reasons, but in all honesty, I don't really care as long as I am not forced to define a special value for tab. <g>