This is the mail archive of the
xconq7@sources.redhat.com
mailing list for the Xconq project.
Re: RFC: Increment and Decrement (was Re: GDL Notice: Arithmetic Operators / Quasi-Formulae)
- From: "Erik Sigra" <freeciv at home dot se>
- To: xconq7 at sources dot redhat dot com
- Cc: j dot ruehle at bmiag dot de,xconq7 at sources dot redhat dot com
- Date: Tue, 22 Jun 2004 19:39:22 +0200
- Subject: Re: RFC: Increment and Decrement (was Re: GDL Notice: Arithmetic Operators / Quasi-Formulae)
> So, I guess the choices for increment and decrement
> are:
> (++ n) (-- n)
> (inc n) (dec n)
> (1+ n) (1- n)
>
> Does anyone have any preferences (aside from those
> already stated)?
I like (+ n 1) and (- n 1) most. It is general and also works with for example 2. It is almost as short to write and already implemented.