On 01/29/2011 12:44 PM, Jim wrote:
bearophile Wrote:

Simon Buerger:

* container should be named with respect to their use, not the
implementation. "HashSet" is a bad name, because the user shouldnt
care about the implemenation.

This is good for a language like Python, or even Java, but for a system 
language I want to know the algorithms I'm using under the hood. So I am not 
sure.

There could be an interface named Set and various implementations of it, e.g. 
HashSet. I think this would be a good principle in general for all abstract 
collection types.

Thus approach has a few advantages but a lot of serious issues. I decided to not define a hierarchy for std.container.

Andrei

Reply via email to