really silly question

Jon Hylands jon at huv.com
Tue Sep 4 01:40:04 UTC 2001


On Mon, 03 Sep 2001 20:39:25 +0200, you wrote:

> The best one so far ( I think) is 
>  firstArray + secondArray 
> which works like a charm :-)
> But you still have to know that the arrays have equal size.

One of the problems with using methods like this is that they are not
typically in the "standard" Smalltalk class library (whatever that
means...)

From my perspective, its much better to learn the general iterators
and how you can use them to accomplish diverse tasks. For instance,
most people with limited experience just don't understand that methods
like #collect: and #select: work on Strings and Intervals as well as
more "normal" collections like Arrays and Sets. Its always a pleasure
to see the lights come on in their eyes when they get it :-)

Later,
Jon





More information about the Squeak-dev mailing list