[Freeciv-Dev] Re: Coding Style Guidelines
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sun, Jan 13, 2002 at 03:00:55AM -0500, Ross W. Wetmore wrote:
> Personally, I'm not a great fan of the K&R tabs&spaces where the tabs
> are not the indent size. Most non-Unix editors can't really handle it
> and the result is either non-compliance or people waste a lot of time
> doing petty manual fixups.
Yes, mixing tabs and spaces to get to proper indent levels is
annoying and dumb.
> If you are starting from scratch, all spaces is easiest to go with,
> and with indent at 2 is a no-brainer. But the current codebase is
> primarily tabbed 8, with a lot of minor and some major non-compliance.
> This means generally it isn't worth doing, but there are probably
> enough holes to get a foot in the door to start opening it.
I am firmly of the opinion that tabs are the only good way to do
indentation. Setting the tab stops at 8 was a dumb decision made decades
ago (5 or 6 would have been the proper values for historical accuracy). I
personally have vi set up to use ts=4.
If everyone else really hates tabs, or hates the intermixing, then
go to all spaces and I'll just be sad.
--
Anthony J. Stuckey stuckey@xxxxxxxxxxxxxxxxx
"And they said work hard, and die suddenly, because it's fun."
-Robyn Hitchcock.
- [Freeciv-Dev] Re: Coding Style Guidelines, (continued)
- [Freeciv-Dev] Re: Coding Style Guidelines, Teemu Kurppa, 2002/01/11
- [Freeciv-Dev] Re: Coding Style Guidelines, Raimar Falke, 2002/01/11
- [Freeciv-Dev] Re: Coding Style Guidelines, Jason Short, 2002/01/11
- [Freeciv-Dev] Re: Coding Style Guidelines, Raimar Falke, 2002/01/11
- [Freeciv-Dev] Re: Coding Style Guidelines, Mike Kaufman, 2002/01/11
- [Freeciv-Dev] Re: Coding Style Guidelines, Raimar Falke, 2002/01/11
- [Freeciv-Dev] Re: Coding Style Guidelines, Chris Richards, 2002/01/11
- [Freeciv-Dev] Re: Coding Style Guidelines, Raimar Falke, 2002/01/12
- [Freeciv-Dev] Re: Coding Style Guidelines, Mike Kaufman, 2002/01/12
- [Freeciv-Dev] Re: Coding Style Guidelines, Ross W. Wetmore, 2002/01/13
- [Freeciv-Dev] Re: Coding Style Guidelines,
Tony Stuckey <=
- [Freeciv-Dev] Re: Coding Style Guidelines, Per I. Mathisen, 2002/01/14
- [Freeciv-Dev] Re: Coding Style Guidelines, Erik Sigra, 2002/01/23
- [Freeciv-Dev] Re: Coding Style Guidelines, Reinier Post, 2002/01/12
[Freeciv-Dev] Re: Coding Style Guidelines, Gregory Berkolaiko, 2002/01/11
|
|