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,11414a19b0e4a97a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Advice on selling Ada to a C shop References: <101bf8f3-b823-45ee-9afd-40cbafb4b7a9@t26g2000prt.googlegroups.com> <774c25c4-3270-4ffb-ad19-366a0ab16659@i31g2000yqm.googlegroups.com> <4c22669b$0$3623$4d3efbfe@news.sover.net> Date: Thu, 01 Jul 2010 07:32:27 -0400 Message-ID: <82sk43zbck.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:IAvsWiblQNg54A5lJBHrDh3st44= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: dc0b94c2c7ccce197caa719225 Xref: g2news2.google.com comp.lang.ada:13052 Date: 2010-07-01T07:32:27-04:00 List-Id: Dennis Lee Bieber writes: > On Tue, 29 Jun 2010 15:30:12 -0500, "Randy Brukardt" > declaimed the following in comp.lang.ada: > > >> In a function returning T'Class: >> return (if C then A else B); -- A and B have different types, both >> covered by T'Class. >> > Ah, at least the syntax reads naturally... I'd have preferred that > Python not have added conditional expressions, but I sure don't like > what they did add: > >>>> A = "It's me" >>>> B = "Not me" >>>> C = True >>>> A if C else B > "It's me" >>>> C = False >>>> A if C else B > 'Not me' >>>> > > I'd have preferred the condition first... That's because you have not been exposed to the Forth language. One of my favorite bumber stickers reads: 4th if honk -- -- Stephe