[BUG]Collection>>removeAll:

Valloud Andres Andres.Valloud at oya.state.or.us
Thu Aug 22 20:26:43 UTC 2002


Hello.

> 2. Designers writing the simplest clearest code they can for operations
but not thinking about all the boundary cases. (x-x and x+x are perfectly
reasonable in arithmetic; x\x and xUx are perfectly reasonable in set
theory; but they are a sort of boundary case.)

x\x and xUx are not equivalent to removeAll: and addAll: because \ and U
don't mutate the contents of x.

The operation \ would correspond to copyWithoutAll:, while U would
correspond to copyWithAll:.

Andres.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020822/50a2a97d/attachment.htm


More information about the Squeak-dev mailing list