Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watmath.UUCP Path: utzoo!watmath!rbutterworth From: rbutterworth@watmath.UUCP (Ray Butterworth) Newsgroups: net.lang.c Subject: Re: more about programming style Message-ID: <16220@watmath.UUCP> Date: Mon, 19-Aug-85 09:33:09 EDT Article-I.D.: watmath.16220 Posted: Mon Aug 19 09:33:09 1985 Date-Received: Tue, 20-Aug-85 21:42:11 EDT References: <11457@brl-tgr.ARPA> <68@ucbcad.UUCP> Organization: U of Waterloo, Ontario Lines: 18 > > > What chance is there of having assignment denoted by := in the standard? > > > The reason I would like this is then ALL assignments ( +=, |=, etc) would > > > be two characters long (consistancy!!). Among other things this would minimize > > > the = vs == type errors. > > > Todd Olson > > Um, what about <<= & >>=? > Simple. Replace <= with .le. and >= with .ge., < with .lt., > with .gt.. > Then Shift can become < or >, and shift assignment can be <= or >=. > Tim Smith ihnp4!{cithep,wlbr!callan}!tim Even simpler. Replace "<=" with "!>", and ">=" with "!<". This gives even more consistency since you can now have "!<", "!>", and "!=". (On my first job, programming in COBOL, we were taught to always use "is not greater than" instead of "is less than or equal to", since the particular IBM compiler we were using actually generated two tests because of the "or": one for the "less than" and another for the "equal to".)