[squeak-dev] Bag>>#rehash missing

Rein, Patrick Patrick.Rein at hpi.de
Fri Mar 5 19:12:11 UTC 2021


Hi everyone,

during a recent debugging session I noticed that Bag does not implement #rehash although it is, in essence, a hash-based collection and should therefore probably roughly adhere to the protocol of HashedCollection. Is there a good reason not to have #rehash on Bag?

On a similar note: HashedCollection>>#rehash is in the `private` protocol but has various senders. As even the class comment mentions the usage of #rehash, I would also propose to move it out of the `private` protocol. :)

Best wishes,
Patrick


More information about the Squeak-dev mailing list