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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,334f9012742e58fc X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!weretis.net!feeder2.news.weretis.net!news.musoftware.de!wum.musoftware.de!news.weisnix.org!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Gnat GPL 2010 available soon (conditional expressions) Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <2010061621145016807-sjs@essexacuk> <0fa4c574-9539-492f-8514-d32c68beb22a@w31g2000yqb.googlegroups.com> <1frrgtpa5dycl$.12kl72iqsg3dx$.dlg@40tude.net> <4c270613$0$6974$9b4e6d93@newsspool4.arcor-online.net> <1wuwvzgwlwgli$.1birkinieia0d$.dlg@40tude.net> Date: Sun, 27 Jun 2010 14:12:26 +0200 Message-ID: <1ur19ais2ejih.mjbgdsv9pr66.dlg@40tude.net> NNTP-Posting-Date: 27 Jun 2010 14:12:25 CEST NNTP-Posting-Host: 1315a7dc.newsspool4.arcor-online.net X-Trace: DXC=@QDe0GZ\aHBC4i^e1BZ=_H4IUKJ\9L5DO=?8ij[ZRCDJ X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:12920 Date: 2010-06-27T14:12:25+02:00 List-Id: On Sun, 27 Jun 2010 03:55:02 -0700 (PDT), lekktu@gmail.com wrote: > On Jun 27, 10:37�am, "Dmitry A. Kazakov" > wrote: > >> dropped "if", because you don't need it: >> >> � �(A then B [else C]) >> >> is syntactically unambiguous and easier to read. > > As you can see on the relevant AI, this was in fact considered (among > lots of other things). FWIW, I'm quite glad they went for the 'if', to > me it is *much* easier to read. How do you know it? (:-)) BTW, in my language I also have a bracketless [infix] form: B when A else C where "when" and "else" are true infix operators. The above is associated as: ((B when A) else C) The semantics is that B when A is B when A is true and undefined when A is false. X else C is X when X is defined and C otherwise. This is a bit easier to read, because of its symmetry. But so far I saw no readable syntax for conditional expressions and I doubt that it existed. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de