Peter Uhnák wrote > Are they really so conceptually different > that DLL is not even considered a collection?
I just reread GOF and reinforced an important idea. Although we often conflate the two, types and classes are not the same. Inheritance is an implementation detail about avoiding duplication by sharing code. Unfortunately, Smalltalk may encourage the conflation because: 1. interfaces are not well-defined 2. and, the tools, being very class-centric, and maybe in reaction to #1, make it tempting to subclass just to make the relationships clearer whether there is code savings or not So the question is whether they are implementation-ally similar enough to justify subclassing. Their conceptual similarity only means they should share the same interface i.e. respond to the same set of messages. ----- Cheers, Sean -- View this message in context: http://forum.world.st/DoubleLinkedList-vs-LinkedList-vs-Collection-tp4819508p4819516.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.