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=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:b086:: with SMTP id z128-v6mr5888419ioe.38.1529367032087; Mon, 18 Jun 2018 17:10:32 -0700 (PDT) X-Received: by 2002:aca:abc6:: with SMTP id u189-v6mr616510oie.2.1529367031967; Mon, 18 Jun 2018 17:10:31 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.unit0.net!newsreader5.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!u78-v6no5296306itb.0!news-out.google.com!z3-v6ni6707iti.0!nntp.google.com!d7-v6no5324312itj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 18 Jun 2018 17:10:31 -0700 (PDT) In-Reply-To: <87602fbu2g.fsf@nightsong.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=47.185.195.62; posting-account=zwxLlwoAAAChLBU7oraRzNDnqQYkYbpo NNTP-Posting-Host: 47.185.195.62 References: <5e86db65-84b9-4b5b-9aea-427a658b5ae7@googlegroups.com> <878t7u1cfm.fsf@nightsong.com> <776f3645-ed0c-4118-9b4d-21660e3bba4b@googlegroups.com> <87602fbu2g.fsf@nightsong.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <6e8368bf-87ea-46d9-98ab-b16a6265bc6b@googlegroups.com> Subject: Re: Ada Successor Language From: "Dan'l Miller" Injection-Date: Tue, 19 Jun 2018 00:10:32 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2759 X-Received-Body-CRC: 1369595854 Xref: reader02.eternal-september.org comp.lang.ada:53151 Date: 2018-06-18T17:10:31-07:00 List-Id: On Monday, June 18, 2018 at 5:36:56 PM UTC-5, Paul Rubin wrote: > "Dmitry A. Kazakov" writes: > > P.S. Stepanov arguing for generics (templates) claimed that the reason > > why C++ needed this mess was impossibility to write Max using dynamic > > polymorphism... I believe it is possible to have a language where > > generic Max and Swap could be written without generics. >=20 > I've been wanting to look up how Ada generics work. C++ generics are > implemented with templates which leads to a horrible mess, but generics > themselves don't have to be a mess, as far as I know. >=20 > Some comparisons: >=20 > http://citeseerx.ist.psu.edu/viewdoc/download?doi=3D10.1.1.110.122&rep=3D= rep1&type=3Dpdf It seems that Ada would score rather well in Table 1 on page 4 had it been = included: Ada =E2=97=8F : multi-type concepts =E2=97=8F : multiple constraints =E2=97=8F : associated type access =E2=97=92 : constraints on associated types =E2=97=8F : type aliases =E2=97=8F : separate compilation (exemplary Ada compilers) =E2=97=8F : implicit argument deduction