From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 7 Apr 93 12:42:25 GMT From: cis.ohio-state.edu!news.sei.cmu.edu!firth@uunet.uu.net (Robert Firth) Subject: Re: and then Message-ID: <1993Apr7.084225.8863@sei.cmu.edu> List-Id: In article <19930406.143008.278@almaden.ibm.com> jnestoriak@vnet.IBM.COM writes : >At a recent code inspection, someone suggested that I convert a >series of and's to and then's "for performance". I expect that Don't do it. The short-circuit forms "and then" and "or else" are there to allow you to state that the two conditions must be tested in the order in which they are written, eg if I in A'Range and then A(I) = 0 then ... where the code would be incorrect with just "and". Using them when they are not necessary is just going to give you, or someone else, one more maintenance headache.