[squeak-dev] terse Object concatenation
Ralph Johnson
johnson at cs.uiuc.edu
Sun Sep 19 22:49:41 UTC 2010
On Sun, Sep 19, 2010 at 3:53 PM, Chris Muller <cmm at 4dst.com> wrote:
> I would like to integrate this elegant extension to the
> object-concatenation API. Just as Exceptions may be easily
> concatenated with the #, (comma) selector, now any object may, as
> well:
>
> object1, object2 --> "{ object1. object2 }"
>
> and, equally, with other collections:
>
> { object1. object2 }, object3 --> "{ object1. object2. object3 }"
Unless object3 is a collection? I assume that { 'this' 'is' }, 'wrong'
will not give an array with three elements. Does #, test its argument
to see if it is a collection, and either append or concatenate
depending on what it is?
-Ralph
More information about the Squeak-dev
mailing list
|