On Oct 17, 7:06 am, Reinier Zwitserloot <[email protected]> wrote:
> ...but if you ever create a ColoredList
> class, which gives all lists color, you MUST write its equals method
> so that an empty red list is equal to an empty blue list, even though
> that seems ridiculous.

Not so ridiculous.  I think that the basic premise that the two empty
lists must be equal is wrong.  The reason being that you can't always
substitute an empty red list for an empty blue list.  Try adding a red
item to a blue list and you'll soon find that the empty lists weren't
so equal after all.

V.

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to