httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: fixes to assist building Apache-1.1b4 on SunOS-4.1, among other
Date Wed, 26 Jun 1996 15:35:06 GMT
Robert S. Thau wrote:
> 
>   I agree with the point about conserving vertical space...
> 
> ... which is the main reason I prefer K&R brace style (*not* to be
> confused with archaic pre-ANSI K&R C *language* features, thank you
> very much) to Berkeley:
> 
>     if (foo) {
>         bar;
>         baz;
>     }
> 
> simply takes less vertical space than
> 
>     if (foo)
>     {
>         bar;
>         baz;
>     }
> 
> or, worse, 
> 
>     if (foo)
>        {
>            bar;
>            baz;
>        }

I'd just note that this not offered as an option in my list. The third option
is, in fact:

    if(foo)
	{
	bar;
	baz;
	}

but perhaps I should make that clearer?

> 
> in which the body is indented far enough to be an uncomforable jump for
> the eye from the 'if', and also to pose problems if the outer 'if' is
> anywhere near the right margin (in which case the 'if' body code itself
> inevitably winds up cramped flush against it).  Over large functions,
> this can easily make the difference between fitting on one screen and 
> not.
> 
> Regarding finding the actual definition of a function in a sea of
> uses, you may have a point... I'll have to think about it.  NB there
> are numerous 'ctags'-style utilities which address this need --- have
> you tried any?  Why don't you like them?
> 
> rst

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.

Mime
View raw message