[code-review] Re: Tie::Array::Sorted
Xavier Noria <[email protected]> Thu, 13 Nov 2003 20:16:34 +0100
| Newsgroups | gmane.comp.lang.perl.code-review-ladder |
|---|---|
| Message-ID | <[email protected]> |
El jueves, 13 novi, 2003, a las 18:16 Europe/Madrid, Fergal Daly=20 escribi=F3: > On Wed, Nov 12, 2003 at 05:17:28PM +0000, Simon Cozens wrote: >> Randy W. Sims: >>> Sounds like a set/multiset/bag structure. >> >> I thought it sounded more like a sorted array, but I'm prepared to be >> persuaded otherwise. (Primarily because I've already released the=20 >> module >> to CPAN. ;) > > I think the point is that T::S::A is closer to a set than an array, or=20= > more > to the point it's interace is just an expansion of a Set's interface. Just to add my two cents to this amazing thread (in the sense that it=20 is showing the usefulness of the list) I don't understand why some=20 people relate sets to this. =46rom the very name I think the intention = of=20 the module is clear: you've got arrays, only they are kept sorted=20 automatically. An array is different from a set in Perl jargon, so the name and the=20 implementation are OK for me (I agree with s/Tie::// but that's another=20= issue). It would surprise me if duplicates were removed, they are not=20 removed in everyday arrays, and the module is about arrays. -- fxn=