home *** CD-ROM | disk | FTP | other *** search
- 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+
- From: gs32+@andrew.cmu.edu (Geoffrey Spear)
- Newsgroups: comp.lang.c
- Subject: Re: Pascal as C prelude?
- Message-ID: <Yf42mAC00iUxA4mKIu@andrew.cmu.edu>
- Date: 22 Nov 92 14:57:48 GMT
- Article-I.D.: andrew.Yf42mAC00iUxA4mKIu
- References: <forb0004.94.722315425@student.tc.umn.edu> <3903@dozo.and.nl>
- <1992Nov22.230514.4991@umbc3.umbc.edu>
- Organization: Freshman, CIT general, Carnegie Mellon, Pittsburgh, PA
- Lines: 23
- In-Reply-To: <1992Nov22.230514.4991@umbc3.umbc.edu>
-
- if(condition){
- statement1;
- statement2;
- }
-
- Is easier for ME, at least to read. First of all, it saves vertical
- space, which is great if you're using EMACS on a 24x80 screen and don't
- want large chuncks of code to scroll off your screen because of 50 lines
- wasted on }'s. Secondly, a line with just a { on it is pointless, as
- you will see that the block ends with the } (nicely justified under the
- statement which required the {}'s in the first place) even if you happen
- to miss the first {.
-
- Finally, and most importantly (to me at least :) ), your style
- reminds me of Pascal, and I try to avoid being reminded of Pascal at all
- costs :).
-
- ------------------------------------
- Geoffrey Spear
- Dept. of Electrical & Computer Engineering
- Carnegie Mellon University
- ------------------------------------
- "You're redlining my bogometer!!"
-