Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!uw-june!pardo From: pardo@uw-june.UUCP (David Keppel) Newsgroups: comp.lang.c Subject: Re: == vs = Message-ID: <3975@uw-june.UUCP> Date: 12 Jan 88 05:09:00 GMT References: <11220@brl-adm.ARPA> Reply-To: pardo@uw-june.UUCP (David Keppel) Organization: U of Washington, Computer Science, Seattle Lines: 13 [ replace "==" with "=>" ] Are you sure you didn't mean ">=" ?-) (a) "=" vs. "==" can be confusing and buggy. (b) ":=" for "=" breaks a lot of code. (c) Nobody is going to change it in C or ANSI-C or C++. (d) Lint (for those of us who have lint, *sigh*) should complain about "if (a=b) ..." unless given a comment /*VALTESTED*/ or something. (e) Compilers should compile programs that have "if (a=b) ...", and any complaints they generate should be turned off by /*VALTESTED*/. ;-D on (Use lint. Everybody has lots from their clothes dryers.) Pardo