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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.71.11 with SMTP id u11mr30102048ywa.11.1448653565300; Fri, 27 Nov 2015 11:46:05 -0800 (PST) X-Received: by 10.182.104.163 with SMTP id gf3mr131256obb.5.1448653565253; Fri, 27 Nov 2015 11:46:05 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!f78no3575265qge.1!news-out.google.com!f6ni14135igq.0!nntp.google.com!mv3no5513483igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 27 Nov 2015 11:46:04 -0800 (PST) In-Reply-To: <834c6afa-870e-4921-a1f1-4fe2b061811a@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=153.181.129.1; posting-account=Mi71UQoAAACnFhXo1NVxPlurinchtkIj NNTP-Posting-Host: 153.181.129.1 References: <0c524381-442a-49cc-9d72-27a654320153@googlegroups.com> <073bed9a-32f2-4045-93ec-064322edf883@googlegroups.com> <834c6afa-870e-4921-a1f1-4fe2b061811a@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4b393c0a-e4cb-46b4-b55c-caf5c2d9a5ae@googlegroups.com> Subject: Re: Two approaches of iterators for the key-value pairs From: ytomino Injection-Date: Fri, 27 Nov 2015 19:46:05 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 1789 X-Received-Body-CRC: 4020219898 Xref: news.eternal-september.org comp.lang.ada:28572 Date: 2015-11-27T11:46:04-08:00 List-Id: > > So the question really is, if we add Ada 2012 Iterator support to Ada.Directories and/or Ada.Environment_Variables, should the design be to > > expose just an Iterator type, or both an Iterator Type, and an Iterable container type? > > > > My thought is that the latter might be better mostly because it would be more consistent with the other standard container types, but I could go either way. Oh, I think the latter might be better for *Ada.Directories*, too, because its element (Directory_Entry_Type) is not the key-value pair.