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: a07f3367d7,2f7ef46127892c41 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.24.202 with SMTP id w10mr1473148wif.0.1343316708227; Thu, 26 Jul 2012 08:31:48 -0700 (PDT) MIME-Version: 1.0 Path: q11ni76246550wiw.1!nntp.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.swapon.de!nuzba.szn.dk!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Little people supporting Ada, possibly through AdaCore? Date: Thu, 19 Jul 2012 21:51:05 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <12955589.960.1336138013614.JavaMail.geo-discussion-forums@vbbfk16> <5043095.1117.1336142172111.JavaMail.geo-discussion-forums@vbli11> <2d7fae9a-5be7-4011-a945-5ecd95684025@googlegroups.com> <949570cd-bdda-49ff-93c7-5189546adf7a@googlegroups.com> <5004ff62$0$293$14726298@news.sunsite.dk> <1hz452qgkjh11$.yp4hv908u9m0$.dlg@40tude.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1342752668 16770 69.95.181.76 (20 Jul 2012 02:51:08 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 20 Jul 2012 02:51:08 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Date: 2012-07-19T21:51:05-05:00 List-Id: "Vasiliy Molostov" wrote in message news:op.whoz7g1gka8ora@aspire.local... ... > I suppose that for user an unknown order means no order. Not really. There are many, many examples of programmers taking advantage of a order that a particular implementation has. As Dmitry points out, it's important that the interfaces expose as little order as possible. This is, in fact, the reason that we ultimately decided that Ada shouldn't have unordered maps and sets. The implementation would necessarily iterate the maps and sets in some order, and it seemed impossible to prevent code from depending on that order. Moreover, lookups in a truly unordered map or set are expensive (requiring looking at the complete contents of the map or set), and there seemed to be no significant performance advantage to the unordered forms over the other forrms. Of course, the iteration order of a hashed map is unknown and should not be depended upon, but that doesn't stop people from trying (as in the OP). Probably, unordered containers shouldn't allow any iteration, but that's obviously limiting. Randy.