From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,db5c6b2ef47d4b9e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-20 17:56:09 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: Al Christians Newsgroups: comp.lang.ada Subject: Re: short-circuit control forms Date: Wed, 20 Jun 2001 17:45:22 -0700 Organization: Trillium Resources Corporation Message-ID: <3B3143A2.89CC2841@easystreet.com> X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 References: <3B30F836.D700DAA3@raytheon.com> <3B312260.728686B5@boeing.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:8950 Date: 2001-06-20T17:45:22-07:00 List-Id: Jeffrey Carter wrote: > > If not, you do not have software engineers. You have coders who are > wasting their time and the company's money on ignorant FUD, and > introducing a new source of error into working software. I'll admit to most of that. But, I find that it is a common thinkographical error for me to not realize that the second condition will be evaluated even when irrelevant, and that it often works out that an exception is raised when the second condition is evaluated. That probably comes from too much time coding in other languages in which the short-circuitedness is controlled by a compiler option that is typically set to short-circuit. IOW, when programming unconsciously, I am more likely to write a correct program if I habitually use the short-circuit forms than if I don't. Following this style will also serve as a form of negative encouragement for functions with side effects, which is also good. Al