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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,11414a19b0e4a97a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder2.cambriumusenet.nl!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!textspool1.readnews.com!news-out.readnews.com!postnews3.readnews.com!not-for-mail Message-Id: <4c22669b$0$3623$4d3efbfe@news.sover.net> From: "Peter C. Chapin" Subject: Re: Advice on selling Ada to a C shop Newsgroups: comp.lang.ada Date: Wed, 23 Jun 2010 15:57:31 -0400 References: <101bf8f3-b823-45ee-9afd-40cbafb4b7a9@t26g2000prt.googlegroups.com> <774c25c4-3270-4ffb-ad19-366a0ab16659@i31g2000yqm.googlegroups.com> User-Agent: KNode/0.10.9 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Organization: SoVerNet (sover.net) NNTP-Posting-Host: 54ea3dbf.news.sover.net X-Trace: DXC=8BPjFak46h:]O[;Ogh^:=3K6_LM2JZB_391LgWiP^@F;^KZ4X^8KgI80h[9=l2oEI4h5:@]DV5Me: X-Complaints-To: abuse@sover.net Xref: g2news1.google.com comp.lang.ada:11901 Date: 2010-06-23T15:57:31-04:00 List-Id: anon@anon.org wrote: > These two packages and their sub-packages should of been introduced > to Ada's RM a back in 2000 or earlier but the powers that be > preferred unions and "oops" and now conditional structures instead. > None of which truly aid Ada. These ideas are slowly causes the > death of Ada because without graphics and windows routine Ada is > limited in it scope of partitions that people want. My understanding is that Ada is primarily a "systems" programming language. It supports embedded programming, real time programming, and other "low level" applications. People writing such programs are not particularly concerned about GUI packages. Well... I can't speak for everyone, but I'm using Ada in an embedded application and I'm certainly not worried about the lack of GUI support. Of course some people do want GUI support and, in fact, there are Ada libraries that do that now. If you feel they are inadequate, you could perhaps create something better. The question isn't about the value of GUI packages (I'm sure we all agree such packages have value) but rather the value of putting such support into the language standard. > Now, with the release of GNAT 2009, Adacore started including > "Conditional Structures". > > In GNAT 2009, the "If" conditional structure was added. > > := (if ... then ... else ... ); > > Not sure if you can use add the "elsif .... then" clause. > > This is too close to C like structures for any Ada purist to approve of. I wasn't involved in the discussion that lead to the decision to include conditional expressions in Ada, but my impression is that they were introduced in large measure to make the new pre- and post-conditions more expressive. When writing a post-condition on a subprogram you only get a single expression... not a statement (please correct me if I'm wrong). Thus if you want to write something complicated conditional expressions and case expressions become useful. Once you've added such expressions to the language there is little point is prohibiting them from "normal" code sequences. In any case conditional expressions are entirely normal in functional languages and widely implemented by such languages. They are not some sort of C quirk as you seem to suggest. I'm not suggesting that Ada should become a functional language (lambdas, anyone?) but to a person fluent with functional programming such expressions are very natural. Peter