From: Christian Neukirchen Date: 2005-06-01T03:33:50+09:00 Subject: Re: Useless hack of the saturday morning James Edward Gray II writes: > On May 31, 2005, at 9:28 AM, Christian Neukirchen wrote: > >> I think the nice thing about packings is that they don't need to >> reference the array variable... your code is no improvement to just >> appending to the array directly, IMHO. > > In that case, how are gather/packing an improvement? They require > more typing than just appending to an Array. > > I guess I just don't "get it". > For example, you could write methods that can add to any object responding to "<<", just whatever it is. It's mostly convenience, I'd say. It can make the code more elegant, e.g. if you would have used #map, but sometimes need to map to several values... > James Edward Gray II -- Christian Neukirchen http://chneukirchen.org