[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] Seeking review of sets and hash tables proposals
On 05/25/2013 04:30 PM, John Cowan wrote:
> Per Bothner scripsit:
>> I note that Java includes an extensible set of "collections classes"
>> - but no Bag class that I can find. That suggests demand is pretty low.
> Because bags are basically unconstrained, the interface for them in Java
> is simply Collection.
Well, the classes implementing Collection generally also implement
Set/List/Map. There are some exceptions (like BeanContextSupport
and Queue), but they're not very bag-like. If you do implement
Collection (for example by extending AbstractCollection), there
is no support for bag-count/bag-increment!/bag-decrement!.
Scheme-reports mailing list