Mail Archives: djgpp/2000/04/07/13:15:32
On Wed, 5 Apr 2000, james archer wrote:
> int main(void)
> {
> printf("Hello, World!");
> return 0;
> }
>
> That seems to me to be the most logical way to do it, for a variety of
> reasons:
>
> 1) The function is clearly visible, instead of being obscured, because
> it is the only thing on the far left. This may seem trivial, but it
> makes it much easier to skim through code looking for a particular
> function.
If you use a decent editor with syntax highlighting, it will paint the
functions in special color that is easily seen at a glance.
For example, I setup Emacs so that it paints function names in
light-red color that immediately stands out in any program.
So visibility should not be such a major factor in choosing the
indentation style.
In general, indentation is a matter of personal preferences, although
the style you use is against what most people seem to prefer.
- Raw text -