Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!ittatc!bunker!shap From: shap@bunker.UUCP (Joseph D. Shapiro) Newsgroups: net.lang.c Subject: Re: re: what should be added to C Message-ID: <1197@bunker.UUCP> Date: Mon, 16-Jun-86 12:46:23 EDT Article-I.D.: bunker.1197 Posted: Mon Jun 16 12:46:23 1986 Date-Received: Tue, 17-Jun-86 12:14:17 EDT References: <5565@alice.UUCP> <8200005@ztivax.UUCP> <1006@umd5.UUCP> <788@steinmetz.UUCP> Reply-To: shap@bunker.UUCP (Joseph D. Shapiro) Organization: Bunker Ramo, Trumbull Ct Lines: 29 In article <788@steinmetz.UUCP> davidsen@kbsvax.UUCP (Davidsen) writes: >I really like this! I don't propose that we use it, but I like it! It >reminds me that the only thing I miss in FORTRAN is the arithmetic IF, >when I write certain types of quick and dirty comparisons. Perhaps we >could also take inspiration from the ? triadic operator and use '$' for >a quadradic operator, return different values for <, =, >. >i.e. n = (a$b : less() : equal() : greater()); > >I don't think I'm serious... >-- > -bill davidsen Interesting idea, but the syntax may be more consistent as... n = ( (expr) $ less() : zero() : greater() ); where if the expression evaluated as negative, less() would be invoked, etc. I don't think I'm serious either. -- -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ Joseph D. Shapiro "He who hesitates Bunker Ramo Information Systems is lunch" ...ittatc!bunker!shap ...decvax!bunker!shap