Re: [Freeciv-Dev] Coding styles (not cranky mode)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Mark Nettle wrote:
>
> I'm a great fan of using tab's to indent. Then (at risk of starting an
> vi vs emacs vs ? war)
>
> $ cat ~/.exrc
> :set sw=4
> :set ts=4
> :set ai
> $
>
> Mark
I believe tabulators should be forbidden in source code.
Generally and everywhere in the (programming) world.
There is nothing like seeing code that was indented with tab width 2
with your default width of, say, 8.
Also, there doesn't seem to be a big tradition of putting comments at
the head of ones code setting the tabulator width.
Means that for example cvs could expand tabulators to 8 spaces
(maybe it does that already?).
But people programming python probably think differently :-)
But if there is a 'freeciv-coding style' defined, it sure would be useful
if people contributed configs/scripts like the one above for their
favorite editors( "M-x c-freeciv-mode" ).
--
Peter Schaefer - schaefer@xxxxxx, schaefer@xxxxxx
"FermaT, by Software Migrations Ltd, is an industrial strength program
transformation system used to migrate IBM 370 Assembler modules into
equivalent readable and maintainable COBOL programs, and to help solve
the year 2000 challenge for IBM 370 Assembler code."
|
|