Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!ut-sally!seismo!umcp-cs!mangoe From: mangoe@umcp-cs.UUCP (Charley Wingate) Newsgroups: net.lang.c Subject: Re: Precedent for use of = Message-ID: <2210@umcp-cs.UUCP> Date: Sun, 29-Jun-86 23:59:45 EDT Article-I.D.: umcp-cs.2210 Posted: Sun Jun 29 23:59:45 1986 Date-Received: Tue, 1-Jul-86 02:07:40 EDT References: <1645@brl-smoke.ARPA> <2208@umcp-cs.UUCP> Organization: University of Maryland, Dept. of Computer Sci. Lines: 17 Actually, the only real problem in confusing equality with assignment is when people try to put assignments in expressions to get side effects, at least in procedural languages. PL/I solves the problem neatly (when's the last time you heard THAT about PL/I?) by having a special assignment-in-an-expression operator. The only language that actually followed the mathematics convention was BASIC as it existed before micros, when the magic word LET was generally required. What we really need is a one-character assignment operator; only APL has the optimal solution as it stands. The C convention is unfortunate for two reasons; first, it's unlike everyone else's, and second, confusing the operators is not likely to result in a syntax error. (Chris, I can't imagine why you mentioned Snobol. In my view, saying that snobol does something in such and such a way is tantemount to saying that we should find another way to do it.) C. Wingate