[Freeciv-Dev] Re: [PATCH] slight optimisation at client/packhand.c
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Wed, 15 Aug 2001, xyzzy@xxxxxxxxxxxxx wrote:
> On Thu, 16 Aug 2001, Gaute B Strokkenes wrote:
>> This needs more spaces. Also, the && should be at the beginning of
>> the line, not the end.
>
> Other people (like me) like && at the end better,
I believe at the beginning is the K&R way. Someone may wish to check.
Personally I think that putting a binary operator at the end of a line
is one of the most annoying and unreadable constructs that there are.
Perhaps this is partly because I'm a mathematician; I can promise you
that leaving a binary operator at the end of a line will make any
mathematician worth his or her salt go nuts.
On a pragmatical level, I like being able to quickly scan through an
if-statement and see what the conditionals are and how they are
related. That's a lot easier if the logical operators are right at
the beginning rather than all the way to the right of the screen.
> and it's more common that way in the code.
I'm not so sure about that. I think it depends on how old that part
of the code is.
--
Big Gaute http://www.srcf.ucam.org/~gs234/
If our behavior is strict, we do not need fun!
Message not available
- [Freeciv-Dev] Re: [PATCH] slight optimisation at client/packhand.c, Ross W. Wetmore, 2001/08/16
- [Freeciv-Dev] K&R style (was Re: [PATCH] slight optimisation ...), Justin Moore, 2001/08/17
- [Freeciv-Dev] Re: K&R style (was Re: [PATCH] slight optimisation ...), Kevin Brown, 2001/08/17
- [Freeciv-Dev] Re: K&R style (was Re: [PATCH] slight optimisation ...), Raimar Falke, 2001/08/17
- [Freeciv-Dev] Re: K&R style (was Re: [PATCH] slight optimisation ...), Trent Piepho, 2001/08/17
- [Freeciv-Dev] Re: K&R style (was Re: [PATCH] slight optimisation ...), Kevin Brown, 2001/08/17
- [Freeciv-Dev] Re: K&R style (was Re: [PATCH] slight optimisation ...), Trent Piepho, 2001/08/17
- [Freeciv-Dev] Re: K&R style (was Re: [PATCH] slight optimisation ...), Raimar Falke, 2001/08/19
- [Freeciv-Dev] Re: K&R style (was Re: [PATCH] slight optimisation ...), Kevin Brown, 2001/08/19
|
|