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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,842accb6a7d76669 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-05 12:27:55 PST Path: archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!sjcppf01.usenetserver.com!usenetserver.com!news-west.rr.com!lsnws01.we.mediaone.net!typhoon.san.rr.com!not-for-mail Message-ID: <3BE6F640.7488A048@san.rr.com> From: Darren New Organization: Boxes! X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: List container strawman 1.1 References: <3BE301D1.4010106@telepath.com> <3BE5AB8F.681577D0@free.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 05 Nov 2001 20:27:59 GMT NNTP-Posting-Host: 66.75.151.160 X-Complaints-To: abuse@rr.com X-Trace: typhoon.san.rr.com 1004992079 66.75.151.160 (Mon, 05 Nov 2001 12:27:59 PST) NNTP-Posting-Date: Mon, 05 Nov 2001 12:27:59 PST Xref: archiver1.google.com comp.lang.ada:15843 Date: 2001-11-05T20:27:59+00:00 List-Id: Ted Dennison wrote: > the proper idiom probably should be "Done_Iterating" as a boolean function, as > you say (or perhaps "More_Elements", so the while condition is positive). Does > anyone disagree? Does anyone think they should *both* be there? I don't think you should have two functions returning the same thing. However, you have to ask whether "Done_Iterating" makes sense when the previous thing you did wasn't an interation. I.e., it's the wrong name because it's not talking about the state of the iterator, it's talking about the state of the calling algorithm. Something like "Off_End" or "Has_Item" or something like that would be more appropriate, because it would make sense to say "Remove(...); if Off_End(...) then ...." for example. -- Darren New San Diego, CA, USA (PST). Cryptokeys on demand. Sore feet from standing in line at airport security checkpoints: Jet Leg.