N-ary < operator (was What I'd really like to see in an if-statement...)
Sidney Markowitz
sidney at saturn.ucsc.edu
Mon Aug 7 09:45:20 AEST 1989
Common LISP also has an n-ary < operator. Since everything is in
prefix notation in parentheses, it makes it pretty simple to express:
a < b is (< a b)
a < b < c is (< a b c)
And it generalizes for any number of operands.
It should be a simple matter of incorporating this kind of generalized
relational operator in some future version of C, simply by switching
from infix to reverse Polish notation. (That's a :-), no flames, please!)
-- sidney markowitz <internet: sidney at saturn.ucsc.edu or sidney at ai.mit.edu>
More information about the Comp.lang.c
mailing list