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-22 13:58:49 PST Path: archiver1.google.com!news2.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: short-circuit control forms Date: 22 Jun 2001 13:58:48 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0106221258.601d2bce@posting.google.com> References: <3B30F836.D700DAA3@raytheon.com> <3B312260.728686B5@boeing.com> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 993243529 4002 127.0.0.1 (22 Jun 2001 20:58:49 GMT) X-Complaints-To: groups-support@google.com NNTP-Posting-Date: 22 Jun 2001 20:58:49 GMT Xref: archiver1.google.com comp.lang.ada:9048 Date: 2001-06-22T20:58:49+00:00 List-Id: Jeffrey Carter wrote in message news:<3B312260.728686B5@boeing.com>... > 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. At best you > should fire them and replace them with software engineers; at worst you > should require them to adhere to your company standard unless they have > justification for deviating. The above itself is FUD in this case. It is quite obvious that in some cases short circuiting is critical for efficiency without needing detailed measurements. For example, when searching in a binary tree, it can make the difference between O(logN) and O(N) behavior in extreme cases (well in recursion cases it can of course make the difference between finite and infinite execution time in a non-lazy language).