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

  1. Path: sparky!uunet!spool.mu.edu!uwm.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!gs32+
  2. From: gs32+@andrew.cmu.edu (Geoffrey Spear)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Pascal as C prelude?
  5. Message-ID: <Yf42mAC00iUxA4mKIu@andrew.cmu.edu>
  6. Date: 22 Nov 92 14:57:48 GMT
  7. Article-I.D.: andrew.Yf42mAC00iUxA4mKIu
  8. References: <forb0004.94.722315425@student.tc.umn.edu> <3903@dozo.and.nl>
  9.     <1992Nov22.230514.4991@umbc3.umbc.edu>
  10. Organization: Freshman, CIT general, Carnegie Mellon, Pittsburgh, PA
  11. Lines: 23
  12. In-Reply-To: <1992Nov22.230514.4991@umbc3.umbc.edu>
  13.  
  14. if(condition){
  15.     statement1;
  16.     statement2;
  17. }
  18.  
  19. Is easier for ME, at least to read.  First of all, it saves vertical
  20. space, which is great if you're using EMACS on a 24x80 screen and don't
  21. want large chuncks of code to scroll off your screen because of 50 lines
  22. wasted on }'s.  Secondly, a line with just a { on it is pointless, as
  23. you will see that the block ends with the } (nicely justified under the
  24. statement which required the {}'s in the first place) even if you happen
  25. to miss the first {.
  26.  
  27.     Finally, and most importantly (to me at least :) ), your style
  28. reminds me of Pascal, and I try to avoid being reminded of Pascal at all
  29. costs :).
  30.  
  31. ------------------------------------
  32. Geoffrey Spear
  33. Dept. of Electrical & Computer Engineering
  34. Carnegie Mellon University
  35. ------------------------------------
  36. "You're redlining my bogometer!!"
  37.