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: 103376,243dc2fb696a49cd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews1.google.com!not-for-mail From: kevin.cline@gmail.com (Kevin Cline) Newsgroups: comp.lang.ada Subject: Re: Ada Popularity: Comparison of Ada/Charles with C++ STL (and Perl) Date: 28 Sep 2004 20:14:49 -0700 Organization: http://groups.google.com Message-ID: References: <41547dae$0$91007$39cecf19@news.twtelecom.net> <41583b4c$0$74190$39cecf19@news.twtelecom.net> NNTP-Posting-Host: 170.215.185.70 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1096427690 2994 127.0.0.1 (29 Sep 2004 03:14:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 29 Sep 2004 03:14:50 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:4357 Date: 2004-09-28T20:14:49-07:00 List-Id: Matthew Heaney wrote in message news:... > kevin.cline@gmail.com (Kevin Cline) writes: > > > "Matthew Heaney" wrote in message > > news:<41583b4c$0$74190$39cecf19@news.twtelecom.net>... > > > > > C++ works by making containers look like built-in types. That's > > > different from Ada, which (as demonstrated above) makes the built-in > > > type look like a container. > > > > Ok, but shouldn't that code be generic? The code above works for only > > one algorithm on one particular array type. > > You're still confused. The local subprograms are analogous to STL > binders and function objects. The generic part is Generic_Op. The rest > is just glue. But 14 lines of glue for every different array type that I want to use with Generic_Op? That's the sort of repetition that turned me away from Ada in the first place. I like languages where I can say what I want, and only have to say it once. I don't like languages where I have to cut and paste endless variations of boilerplate code. For that reason I like C++ and Perl and LISP and don't like Ada and Java and C#.