Collection interfaces (Was: New to OO concepts - re-usability)

Patrick Logan patrickdlogan at home.com
Sun Feb 25 16:20:04 EST 2001


"Topmind" <topmind at technologist.com> wrote
in message news:MPG.150312ceb68f1ada98969f at news.earthlink.net...
>
> This is a sore point with me. To me it seems silly (artificial)
> to split collection handling into categories (stacks, sets, trees, etc.).
> If needs change from one to another or a combo, then you are hosed
> with a non-fitting interface.

Yes, and so OO language provide an advantage here. Collection classes
in these languages are accessible through common interfaces. You don't
care how they are implemented, you only care about the interface.

> Shape up!

Yeah!

--
Patrick Logan
mailto:patrickdlogan at home.com






More information about the Python-list mailing list