Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!decwrl!sun!shannon From: shannon@sun.uucp (Bill Shannon) Newsgroups: net.lang.c Subject: Re: condition convention 'if (10 == j)...' Message-ID: <2155@sun.uucp> Date: Thu, 2-May-85 03:03:48 EDT Article-I.D.: sun.2155 Posted: Thu May 2 03:03:48 1985 Date-Received: Fri, 3-May-85 23:52:03 EDT References: <137@bocklin.UUCP> <1456@amdahl.UUCP> <2140@sun.uucp> <1421@reed.UUCP> Organization: Sun Microsystems, Inc. Lines: 16 > >I tend to read this in terms of > >"if variable equals constant" and try to figure out how the value > >"10" is ever going to change! YUCK YUCK YUCK!!!! > > If you expect j to change when you read `if (j == 10)', then you are > sorely in need of ways to differentiate between assignment and > comparison!!! If j can't change, why are you testing whether or not it is equal to 10 right now? If j is a constant then pick the appropriate arm of the if-else and use just it. Bill Shannon P.S. Don't you just love religious arguments? I know I'm having fun!