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: g2news1.google.com!news2.google.com!postnews.google.com!b2g2000prf.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: and then... (a curiosity) Date: Tue, 2 Sep 2008 07:56:35 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <18b41828-bda4-4484-8884-ad62ce1c831d@f36g2000hsa.googlegroups.com> <874p53bij6.fsf@willow.rfc1149.net> <94cc1ce3-59d1-41fa-9167-f3b60ddd2835@a1g2000hsb.googlegroups.com> <48bba264$1@news.post.ch> <48bce306$1@news.post.ch> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1220367396 822 127.0.0.1 (2 Sep 2008 14:56:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 2 Sep 2008 14:56:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b2g2000prf.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:1868 Date: 2008-09-02T07:56:35-07:00 List-Id: On Sep 1, 11:53 pm, Martin Krischik wrote: > > My problem is not with the theoretical elegance as such, but rather that "or" > > vs "or else" is not immediately clear to me. > > As a multi-language programmer, I am really really used to thinking of boolean > > or as "if one is true we don't care about the other". > > Funny I am not - probably because my first languages where Basic and > Pascal - and Basic and Pascal do not guarantee short cut boolean. Modern > Basic and Pascal dialects might have it but it is not guaranteed in the > language itself. Yeah, and I don't think COBOL or Fortran guarantee "or else" semantics either. I was happy when I first started working in Ada because it had this. C has this feature, although like everything else in the language it was represented in proto-Egyptian hieroglyphics rather than in English, but this was a new and exciting feature to me. I guess Ray must be a young'un who only learned all them durn newfangled languages and never had to struggle with REEL languages like us dinosaur REEL programmers did back when we had to put all our programs on punch cards and then lug them five miles through the snow to the computer operator, uphill both ways..... -- Adam