[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Prefix
These discussions on operators bring to light the issue of clarity:
The first expression:
((a + b + c + d + e + f - g ) * 4) / 3
might be written in Scheme as:
(/ (* (- (+ a b c d e f)
g)
4)
3))
Notice how the "-" disappeared into the parallel list of "+"s!
PaulP seems to have missed it:
(4 * (a + b + c + d + e + f)) / 3
whereas Scheme made it clear that a...f are involved in a *single*
(variadic) addition operation, but g is obviously handled differently.
Chris D.
cdutchyn@cs.ubc.ca
- References:
- Prefix
- From: Paul Prescod <paul@prescod.net>