Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2003:
[Freeciv-Dev] Re: (PR#2745) Change style guide to favor a++ instead of +
Home

[Freeciv-Dev] Re: (PR#2745) Change style guide to favor a++ instead of +

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients:;
Subject: [Freeciv-Dev] Re: (PR#2745) Change style guide to favor a++ instead of ++a
From: "Raimar Falke via RT" <rt@xxxxxxxxxxxxxx>
Date: Tue, 7 Jan 2003 08:37:08 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Tue, Jan 07, 2003 at 04:42:05AM -0800, Gregory Berkolaiko via RT wrote:
> 
> Is there a good reason for this change?

Reduce the number of possible styles?!

Also IMHO a++ is better because it is more like a+=2. AFAIK the ++a
came up with C++ because it was faster for non-trivial types because
you need an extra assignment for a++ IIRC.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Using only the operating-system that came with your computer is just
  like only playing the demo-disc that came with your CD-player."




[Prev in Thread] Current Thread [Next in Thread]