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=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no 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:55:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed1.uncensored-news.com!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <3BE301D1.4010106@telepath.com> <3BE5AB8F.681577D0@free.fr> <3BE6F640.7488A048@san.rr.com> Subject: Re: List container strawman 1.1 Message-ID: <20DF7.13635$xS6.18468@www.newsranger.com> X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Mon, 05 Nov 2001 15:54:22 EST Organization: http://www.newsranger.com Date: Mon, 05 Nov 2001 20:54:22 GMT Xref: archiver1.google.com comp.lang.ada:15851 Date: 2001-11-05T20:54:22+00:00 List-Id: In article <3BE6F640.7488A048@san.rr.com>, Darren New says... > >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. I was talking about having both the object and the routine, not about two routines. :-) >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. I think I like "Has_Item", as it clearly states what's invalid (the "Item" routine) and/or what exception you will get ("No_Item") if it is false. Plus it is positive in an iterating while loop, which is no small consideration in my book. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.