Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!cmcl2!yale!wald-david From: wald-david@CS.YALE.EDU (david wald) Newsgroups: comp.lang.c Subject: Re: Efficient coding considered harmful? Message-ID: <43221@yale-celray.yale.UUCP> Date: 16 Nov 88 07:30:02 GMT References: <3105@hubcap.UUCP> <34112@XAIT.XEROX.COM> <1700@dataio.Data-IO.COM> <7700@bloom-beacon.MIT.EDU> <771@wsccs.UUCP> Sender: root@yale.UUCP Reply-To: wald-david@CS.YALE.EDU (david wald) Organization: Yale University Computer Science Dept, New Haven CT 06520-2158 Lines: 35 In article <771@wsccs.UUCP> dharvey@wsccs.UUCP (David Harvey) writes: >The recent postings on the net on this topic has prompted me to respond >about a teacher at our college (not necessarily reflecting the opinion >of all faculty members) who would fail me for the following code: > >if( ! something) { > ++j; > . > . > . >} > >but would pass me with flying colors for the following: > >if ( something != 0) > { > j = j + 1; > . > . > . > } > >As a matter of fact, he would under no circumstances allow me to >use the '++', '--', '+=', '-=', '/=', '*=', or '%=' operators. >I would LITERALLY be failed if it were there. Just out of curiosity: Why the hell was he teaching in C? ============================================================================ David Wald wald-david@yale.UUCP waldave@yalevm.bitnet ============================================================================