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-Thread: 103376,99e73f65ea2533b9 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!8g2000hse.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: and then... (a curiosity) Date: Fri, 5 Sep 2008 01:38:23 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <18b41828-bda4-4484-8884-ad62ce1c831d@f36g2000hsa.googlegroups.com> <57qdnfULQ9tzKCHVnZ2dnUVZ_tHinZ2d@comcast.com> <48bd0003$1@news.post.ch> <48bf90bf$0$30032$dbd4d001@news.euronet.nl> <1tm4gzcy6psv7$.xon8yk0ehqlf.dlg@40tude.net> <48c03e18$0$80906$dbd4f001@news.euronet.nl> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1220603904 12945 127.0.0.1 (5 Sep 2008 08:38:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 5 Sep 2008 08:38:24 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 8g2000hse.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3) Gecko/20040924,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7670 Date: 2008-09-05T01:38:23-07:00 List-Id: Stefan Lucks wrote: > On Thu, 4 Sep 2008, wrote: > > > And again, you propose a contextual interpretation of "Y/X<100" (for X=0). > > That is totally beyond what program analysis can achieve. > > No, I am not. I claim that the shortcut "and" (which in Ada unfurtunately > is written as "and then") is the more natural and human-readable > interpretation of "and" expressions. Maybe my college years are too far behind but I differ here. When I see "and", I intuitively think of a _symmetric_ operator with the same meaning for Booleans as for arrays of Booleans and modular types (i.e. bitwise, mathematical, pure Boolean-logic "and"). When I see "and then", I intuitively think of an _asymmetric_ operator which only evaluates the right hand side if the left-hand side is True. -- Ludovic Brenta.