Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!seismo!ut-sally!ut-ngp!dlnash From: dlnash@ut-ngp.UUCP (Donald L. Nash) Newsgroups: net.lang.c Subject: Re: What should be added to C Message-ID: <3414@ut-ngp.UUCP> Date: Tue, 20-May-86 13:44:23 EDT Article-I.D.: ut-ngp.3414 Posted: Tue May 20 13:44:23 1986 Date-Received: Fri, 23-May-86 23:35:11 EDT References: <590@brl-smoke.ARPA> <3570@nsc.UUCP> <1462@mmintl.UUCP> Organization: UTexas Computation Center, Austin, Texas Lines: 46 In article <1462@mmintl.UUCP>, franka@mmintl.UUCP (Frank Adams) writes: > > o := as a synonym for =. Compilers could have an option to permit := only. > Why? "Since assignment is about twice as frequent as equality testing in typical C programs, it's appropriate that the operator be half as long." K&R, p. 17. Allowing := as a synonym is OK, if you prefer that operator, but why would you want to make it manditory? > > o Any sort of multi-level break statement. There is no syntacticly clean > way of adding this to C. > How about using goto? Some people may think that goto sucks wind, but it is a perfectly legitimate statement which can get you out of trouble, if properly used. > I do not support the following: > > o ^^ for logical exclusive or. Unlike the other "short-circuit" forms (&& > and ||), this doesn't save any execution -- both operands must be evaluated. So what if they both have to be evaluated? If you need to use some kludge to get ^^ (like !a != !b), you will still wind up evaluating both operands. That's just the way XOR works. Just because it requires more work is no reason to exclude it from the language. > > Frank Adams ihnp4!philabs!pwa-b!mmintl!franka > Multimate International 52 Oakland Ave North E. Hartford, CT 06108 I don't want to come off sounding like a fluff picker, so just for the benefit of those of you who care, I did agree with the rest of the article. If net traffic weren't such a big issue, I'd have included the rest of the article as well, with more agreeable comments added. Don Nash UUCP: ...!{ihnp4,allegra,seismo!ut-sally}!ut-ngp!dlnash APRA: dlnash@ngp.CC.UTEXAS.EDU BITNET: cceu001@utadnx "If you can't say something nice, then don't" -- Thumper the rabbit