[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: +, - and such



Jonathan Hseu <vomjom@vomjom.org> writes:

> Is there a reason why + and - currently take only two arguments?
> According to the manual, the definition for them is:
> (x|<num> y|<num> => <num>) 
> 
> Would I have to do awkward stuff like:
> (- 0 x) to negate x?

you can also do

  (neg x)

> Or nest additions to add multiple times?
> 
> Or is it a temporary thing?

yes.  the plan is explained in the nary dispatch proposal:

  http://www.googoogaga.org/wiki/index.php/NaryDispatchProposal

i hope to implement this soon.  this would provide a nice
infrastructure for implementing nary arithmetic.

jonathan

> Potentially stupid question :)
> 
> -- 
> Jonathan Hseu <vomjom@vomjom.org, vomjom@debian.org, jh4@cec.wustl.edu>
> GPG ID:          5228D713
> GPG fingerprint: 220B A4EF 70FE B884 CB38  F93F EA8A 1024 5228 D713