Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!columbia!caip!brl-adm!brl-smoke!smoke!MEYER@RADC-TOPS20.ARPA From: MEYER@RADC-TOPS20.ARPA Newsgroups: net.lang.c Subject: Re: Precedent for use of = Message-ID: <1954@brl-smoke.ARPA> Date: Thu, 3-Jul-86 21:15:55 EDT Article-I.D.: brl-smok.1954 Posted: Thu Jul 3 21:15:55 1986 Date-Received: Sat, 5-Jul-86 06:11:12 EDT Sender: news@brl-smoke.ARPA Lines: 19 I know this is going to cause a bit more of a stir here, here goes. Everybody keeps guessing at the reasons for the use of = for asignment and == for equality tests. How about a different angle: how many times in a program do you assign something versus how many times you compare things? I seems to me that if it comes down to keystrokes (which by the way is why a lot of UNIX commands are two or three letters long) I'll take = for assignment any day. When I was writing PASCAL programs, Mmy most common error was typing '=' when I meant ':='. Also, if you think about it, the use of == is not so bad 'cuz it is the same character typed twice as opposed to two keys in entirely different places on the keyboard in which one of them has to be shifted and the other not. I prefer not to have to perform keyboard acrobatics to type in a program. Maybe Mssrs. Kernighan and/or Ritchie would like to give some input on their reasons of choice. -------