Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!ddl From: ddl@husc6.UUCP (Dan Lanciani) Newsgroups: comp.lang.c Subject: Re: Writing readable code Message-ID: <2379@husc6.UUCP> Date: Tue, 23-Jun-87 21:03:31 EDT Article-I.D.: husc6.2379 Posted: Tue Jun 23 21:03:31 1987 Date-Received: Thu, 25-Jun-87 04:15:07 EDT References: <8286@ut-sally.UUCP> <7001@alice.UUCP> <364@sol.ARPA> <1158@copper.TEK.COM> Organization: Harvard University Computer Services Lines: 19 In article <1158@copper.TEK.COM>, stevesu@copper.TEK.COM (Steve Summit) writes: | b) I actively prefer | | if(p != NULL) | to | if(!p) | | I know that they are 100% equivalent as far as a correct | compiler is concerned (and they are; let's not get | started on that again), and I have "mastered the idiom," | but the second form takes enough extra thought, and is | confusing enough to the uninitiated, that it just plain | isn't worth the seven characters saved. Are you absolutely sure that you have "mastered the idiom?" :-) (Sorry, I couldn't resist.) Dan Lanciani ddl@harvard.*