Decision on container design
Jonathan M Davis
jmdavisProg at gmx.com
Sat Jan 29 18:57:16 PST 2011
On Saturday 29 January 2011 09:09:00 Simon Buerger wrote:
> * 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.
It was decided previously that containers in std.container would specifically be
named based on the type of data structure that they are rather than what they're
used for. Hence why the newest container to std.container is called
RedBlackTree. If you want to call it TreeSet or something similar, then all you
have to do is alias it. So, it's easy to get names based on usage if that's what
you want, but that's not the naming scheme that std.container is using.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list