Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!husc6!harvard!seismo!umcp-cs!cvl!umd5!zben From: zben@umd5.UUCP (Ben Cranston) Newsgroups: net.lang.c Subject: Re: re: what should be added to C Message-ID: <1006@umd5.UUCP> Date: Fri, 6-Jun-86 18:40:56 EDT Article-I.D.: umd5.1006 Posted: Fri Jun 6 18:40:56 1986 Date-Received: Sun, 8-Jun-86 06:23:07 EDT References: <5565@alice.UUCP> <8200005@ztivax.UUCP> Reply-To: zben@umd5.UUCP (Ben Cranston) Organization: U of Md, CSC, College Park, Md Lines: 24 Summary: This is a joke In article <8200005@ztivax.UUCP> david@ztivax.UUCP writes: >PLEASE don't make := the assignment operator!!!!! >[shift][:] [=] is a pain, slow, it hurts my fingers :-) and >it is error prone if you type fast. >The assignment operator is easily the most common, and so it >should be one character, unshifted. Clearly "=" should remain the assignment operator. We should replace all testing with the extended syntax: ... switch (a:b) { case <: isgreater; break; case =: isequal; break; case >: isless; break; default: yell("this cannot happen!\n"); } ... I would have used (a?b) but it was already taken... :-) -- "We're taught to cherish what we have | Ben Cranston by what we have no longer..." | zben@umd2.umd.edu ...{seismo!umcp-cs,ihnp4!rlgvax}!cvl!umd5!zben