home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!cs.utexas.edu!devnull!rgp
- From: rgp@mpd.tandem.com (Ramon Pantin)
- Newsgroups: comp.lang.c++
- Subject: Re: Tiny proposal for named loops.
- Message-ID: <2319@devnull.mpd.tandem.com>
- Date: 27 Aug 92 03:56:12 GMT
- References: <rmartin.714750452@thor> <9223902.3230@mulga.cs.mu.OZ.AU> <rmartin.714863856@thor>
- Sender: news@devnull.mpd.tandem.com
- Organization: Tandem Computers, Micro-Products Division
- Lines: 31
-
- In article <rmartin.714863856@thor> rmartin@thor.Rational.COM (Bob Martin) writes:
- >Again, I disagree. I find this construct:
- > while (error == NO && done == NO)
- >easier to understand than:
- > ...
-
- (Don't mean to start another religious war :-)
-
- I find this verbose and hard to read:
- while (error == NO && done == NO)
- Thought process when I see this:
- "while error is equal to NO (what the heck is `NO'?)
- and done is equal to the same `NO'"
-
- What is wrong with good old C code as the goods meant it to be?
- while (!error && !done)
- Thought process when I see this:
- "while not error and not done"
-
- You don't believe in boolean expressions either? :-)
-
- The same can be said for:
- if (flag & XXX)
- which is easier to understand than:
- if ((flag & XXX) != 0)
- Don't you find this kind of verbosity incredibly ugly ?
-
- I'll be sure that the "end is near" when I see: :-)
- if (((flag & XXX) != 0) == TRUE)
-
- Ramon Pantin
-