Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!agate!saturn!sidney From: sidney@saturn.ucsc.edu (Sidney Markowitz ) Newsgroups: comp.lang.c Subject: N-ary < operator (was What I'd really like to see in an if-statement...) Message-ID: <8646@saturn.ucsc.edu> Date: 6 Aug 89 23:45:20 GMT References: <5024@alvin.mcnc.org> <1300@atanasoff.cs.iastate.edu> <456@helios.prosys.se> <14521@bfmny0.UUCP> <1864@salgado.Solbourne.COM> Reply-To: sidney@saturn.ucsc.edu (Sidney Markowitz ) Organization: University of California, Santa Cruz Lines: 11 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