home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16636 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.1 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!agate!doc.ic.ac.uk!uknet!mcsun!sunic!dkuug!iesd!iesd.auc.dk!fischer
  2. From: fischer@iesd.auc.dk (Lars Peter Fischer)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: The Correct Way To Write C if-Statements
  5. Message-ID: <FISCHER.92Nov17034813@steinhaus.iesd.auc.dk>
  6. Date: 17 Nov 92 03:48:13 GMT
  7. References: <140742@lll-winken.LLNL.GOV> <9130056@hpavla.lf.hp.com>
  8.     <605@ulogic.UUCP>
  9. Sender: news@iesd.auc.dk (UseNet News)
  10. Organization: Mathematics and Computer Science, Aalborg University
  11. Lines: 22
  12. In-Reply-To: hartman@ulogic.UUCP's message of 14 Nov 92 23:48:17 GMT
  13.  
  14.  
  15. >>>>> "Richard" == Richard M. Hartman (hartman@ulogic.UUCP)
  16.  
  17. Richard>     if (!condition)
  18. Richard>         do_something;
  19.  
  20. Richard> should obviously be written as:
  21.  
  22. Richard>     if ( condition )
  23. Richard>         {
  24. Richard>         }
  25. Richard>     else
  26. Richard>         {
  27. Richard>         do_something;
  28. Richard>         }
  29.  
  30. Nice if you're being paid per line of code.
  31.  
  32. /Lars
  33. --
  34. Lars Fischer, fischer@iesd.auc.dk | It takes an uncommon mind to think of
  35. CS Dept., Aalborg Univ., DENMARK. | these things.  -- Calvin
  36.