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-13 08:48:30 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: List container strawman 1.1 Date: 13 Nov 2001 11:47:23 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: <9s941i$11mrei$3@ID-25716.news.dfncis.de> <9s9nkr$11se3h$1@ID-25716.news.dfncis.de> <3BEC9BB8.6010708@telepath.com> <3BEC9F87.DBED743D@san.rr.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1005670201 2293 128.183.220.71 (13 Nov 2001 16:50:01 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 13 Nov 2001 16:50:01 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:16422 Date: 2001-11-13T16:50:01+00:00 List-Id: Darren New writes: > Ted Dennison wrote: > > in CS outside of its older list-processing meaning. But it seems to be > > that "Singleton" has these exact problems as well. However, singleton > > does have the advantage that it is a better name for a function since it > > describes what you are getting. > > I'd go with "singleton". The only reason it "already has a meaning in > CS" is that the meaning is the same. A singleton set is a set with only > one element, a singleton list is a list with only one element, and a > singleton class is a class with only one instance. That last one is more commonly heard these days, and is significantly different. A true singleton class _cannot_ be expanded to have more than one instance _by design_. The "singleton" list discussed here is just the initial value; it can easily be expanded. That difference is enough to rule out "Singleton" for me. -- -- Stephe