Liste des Groupes | Revenir à cl c |
Ar Rakin <rakinar2@onesoftnet.eu.org> writes:Interesting to know! The only time I have seen the AT&T/GNU C style is when I contributed to GNU projects.On 2/25/25 9:23 PM, David LaRue wrote:I prefer the AT&T style (which you call GNU style, but which actuallyI used a style similar to this in school. Before that I used much the same.>
As for existing code bases I prefer to keep their style and add comments
accordingly. That generally goes for any language.
Agreed. For existing projects, the code style should be preserved.
>Popularity of a style shouldn't be a goal. It should be consistantly>
readable and documented. We must write for ourselves as well as our future
self and others.
This is true. I just wanted to know which style most people seem to prefer.
>
Thanks for your response!
predates Stallman).
The vi(1) editor has several commands that are designed to support
the AT*T (or more properly, Bell Labs) style, such as the '[['
and ']]' commands. Starting a function definition with
the function name in column 1 enables the use of the VI
/^main
command to easily move the cursor to the start of a named function.
Les messages affichés proviennent d'usenet.