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,c0d427d5f4af20f8 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: generics in Ada 83 Date: 21 Sep 2005 18:58:13 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1126617980.932226.320710@g43g2000cwa.googlegroups.com> <1126703715.202970.293880@g47g2000cwa.googlegroups.com> <1126711381.425805.248380@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1127343493 12702 192.74.137.71 (21 Sep 2005 22:58:13 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 21 Sep 2005 22:58:13 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:5016 Date: 2005-09-21T18:58:13-04:00 List-Id: writes: > "Robert A Duff" wrote in message > news:wccbr2vpsh2.fsf@shell01.TheWorld.com... > > > > The Ada way makes it easier to understand what the contract _is_. > > > > On the other hand, the C++ way is more powerful. > > > Kinda like the difference between safety-matches and > strike-anywhere matches. Well, maybe, but I didn't really mean it that way. I wrote the above to be a sort-of neutral comparison of the Ada and C++ way of doing generics/templates. Each has advantages. The language designer in me wants to get the best of both. Somehow... >... When I was a kid in rural > Pennsylvania, we used to call strike-anywhere matches > "barn burners." Hmmmmm. There is an analogy in > there someplace. I don't think one can buy strike-anywhere matches around here these days. - Bob