Example A-SIGNATURES Re: A Way to express Standard multi-argument Method Signatures in Smalltalk Re: [ANSI-Smalltalk] Next STEPs

Paolo Bonzini bonzini at gnu.org
Thu Mar 13 08:07:15 GMT 2008


> *(nil  <-  true  <-  false  <-  #foo)    = 
> (OrderedCollection with: nil with: true with: false with #foo)   *.

And what if I want to have an OrderedCollection or another kind of 
Collection as the first item?

> POINT:  Smalltalk (-standard) does not /need/ a syntax for creating  Arrays
> with non-literal elements.  Why?  Because BINARY OPERATORS can be
> utilized and redefined as needed to construct arbitrary data-structures.

Funny, syntax extensions was one of the STEPs I had in mind. :-)

Paolo



More information about the ANSI-Smalltalk mailing list