Re: C++ sucks for games

From: Petter Gustad (newsmailcomp5_at_gustad.com)
Date: 10/27/04


Date: 27 Oct 2004 17:08:01 +0200

Sashank Varma <none@vanderbilt.edu> writes:

> In article <clo3rh$6um$1@newsg3.svr.pol.co.uk>,
> "Computer Whizz" <old486whizz@hotmail.com> wrote:
>
> > > What if you want to compute something like that:
> > > a + b + c + d + e + f + g + h + i + j + k + l;
> > >
> > > (with usefull names)
> > >
> > > Here Lisp only needs one +:
> > > (+ a b c d e f g h i j k l)
> > >
> >
> > Quite nice I suppose... Although I don't really mind adding those extra
> > +'s.... Then again I can't really imagine just adding alot of variables
> > together.
>
> Yeah, but this generalizes in nice ways.

Not only that, + works when the numbers are complex as well:

(+ (complex 3 3) (complex 3 -3) 3) => 9

or even rational numbers

(+ 2/3 2/3 1/3) => 5/3

Petter

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?


Relevant Pages