home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!math.fu-berlin.de!unidui!rrz.uni-koeln.de!Germany.EU.net!mcsun!sunic!seunet!volvo!risken!hansg
- From: hansg@risken.vd.volvo.se (Hans Granqvist)
- Newsgroups: comp.lang.c
- Subject: Re: The Correct Way To Write C if-Statements
- Message-ID: <hansg.721510062@risken>
- Date: 11 Nov 92 19:27:42 GMT
- References: <140742@lll-winken.LLNL.GOV> <1992Nov6.225622.25460@dg-rtp.dg.com>
- Sender: news@vd.volvo.se
- Lines: 35
-
- goudreau@robin.rtp.dg.com (Bob Goudreau) writes:
-
- -> if ( OpenCode ) ...
-
- -Is anyone else as repelled as I am by the practice of leaving the
- -parentheses surrounded by whitespace on both sides? Not only does
- -it violate such de-facto standards as K&R or H&S, it goes against
- -common English usage as well ( and if you don't believe that, then
- -tell me what's wrong with this parenthetical question? ) .
-
- Hmm... in my opinion, every person putting two (2) spaces at the end of
- a sentence ('full stop'?) not only breaks a de facto Swedish standard but also
- shows great unsolidity in his language.
-
-
- -Moving on to another topic...
-
- -> if ( SomeDarnThing == TRUE ) ...
-
- -If "SomeDarnThing" (amazing how the whitespace fanatic seems to hate
- -underscores!) is a boolean variable, then what is the point of testing
- -it against TRUE or FALSE? The following is more concise and easier
- -to read:
-
- - if (some_darn_thing) ...
-
-
- Aye, relating to your latest remark on coherence with common language
- usage, is your proposed fashion more correct than the other?
-
- And, then, is there the slight casuality that 'TRUE' was defined to, per
- chance, '4711'?
-
- --
- Hans Granqvist, Volvo, Gothenburg, Sweden.
-