Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!ihlpg!tainter From: tainter@ihlpg.UUCP (Tainter) Newsgroups: net.lang.c Subject: Re: Precedent for use of = Message-ID: <2158@ihlpg.UUCP> Date: Tue, 8-Jul-86 13:58:32 EDT Article-I.D.: ihlpg.2158 Posted: Tue Jul 8 13:58:32 1986 Date-Received: Thu, 10-Jul-86 01:35:37 EDT References: <1645@brl-smoke.ARPA> <2208@umcp-cs.UUCP> Organization: AT&T Bell Laboratories Lines: 35 > In article <1645@brl-smoke.ARPA> JUNG_E%SITVXA.BITNET@WISCVM.WISC.EDU writes: > It is too late for C to be like anything else; it is like C. Besides, > if it were exactly like (say) Pascal, it would *be* Pascal. There is > room for many languages. > >Practically every language uses the equals sign, "=", to test for > >equality, not as an assignment operator. > Perhaps you know more languages than I. Let me list those whose > syntax I remember, and count `= for assigment' vs. `= for equality' > (or both). > Assignment Equality > ---------- -------- > Algol > APL > awk > BASIC (really both) > FORTRAN > Icon > Lisp (neither really) > Mesa > Pascal > Snobol > Well, 5 to 3 in favour of `= for equality', though APL and Mesa are > perhaps special cases: back-arrow is not available for assignment on > my H19. ADD: Assignment Equality ---------- --------- mathematics logic > -- > In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1516) > UUCP: seismo!umcp-cs!chris > CSNet: chris@umcp-cs ARPA: chris@mimsy.umd.edu --j.a.tainter