Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcs!mnetor!seismo!lll-crg!brooks From: brooks@lll-crg.UUCP Newsgroups: net.lang.c Subject: Re: PRECEDENT FOR USE OF = Message-ID: <3522@lll-crg.ARpA> Date: Sat, 12-Jul-86 20:11:41 EDT Article-I.D.: lll-crg.3522 Posted: Sat Jul 12 20:11:41 1986 Date-Received: Sat, 12-Jul-86 23:20:06 EDT References: <1645@brl-smoke.ARPA> <3000080@uokvax.UUCP> Reply-To: brooks@lll-crg.UUCP (Eugene D. Brooks III) Organization: CRG, Lawrence Livermore Labs Lines: 13 >= for assignment is one of many flaws in C syntax. Combined with the >absence of a Boolean type, it is a considerable source of errors in C >code. Lint should warn the user of every occurrence of "if (a = b)". Not a bad idea. I don't write this as a matter of policy and I would not mind lint giving a warning. You could even have a flag control it. > >(I predict that at least one C-worshipper will say "*real* C programmers, >as opposed to quiche-eaters, don't make that mistake." I think they're It is true that real programmers don't make mistakes and don't eat quiche either. It has nothing to do with C. Real programmers don't spend their time complaining about using = for assignment either.