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,93ab7fc5388e249 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-06 09:13:49 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news2.euro.net!uunet!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: List container strawman 1.3 X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3C0FA34E.A4FDF069@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: <3C0E1E7E.CA7113F4@brighton.ac.uk> <9ulni1$d58$1@a1-hrz.uni-duisburg.de> <3C0EB963.93559770@boeing.com> <9unt6i$j8f$1@a1-hrz.uni-duisburg.de> Mime-Version: 1.0 Date: Thu, 6 Dec 2001 16:56:46 GMT X-Mailer: Mozilla 4.73 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:17514 Date: 2001-12-06T16:56:46+00:00 List-Id: Georg Bauhaus wrote: > > Jeffrey Carter wrote: > > : Why would you use a list for anything other than a list? > > If a queue/deque/stack is separately provided, I wouldn't. > (Java 1.2 has explicit advice to use List as base for the > these ADTs). Even if they're not, I would build any I needed , using a list as implementation, rather than using a list directly. No matter how disciplined I am, it's too tempting to future modifiers of the code to leave all those general list operations available. -- Jeffrey Carter