Efficient coding considered harmful?

david wald wald-david at CS.YALE.EDU
Wed Nov 16 17:30:02 AEST 1988


In article <771 at wsccs.UUCP> dharvey at 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 at yale.UUCP
						       waldave at yalevm.bitnet
============================================================================



More information about the Comp.lang.c mailing list