[ANSI-Smalltalk] re: array creation syntax

Panu Logic panulogic at gmail.com
Tue Apr 22 17:05:17 BST 2008


Paolo Bonzini wrote:
>>      Set from:  a. b. c. d
> So . (which is not Smalltalk, but I'll grant this) would define 
> something like a cons cell, and #from: would transform it back to a 
> Collection?
Yes, I think it should work.

You are right that '.' is a reserved character,  being the Smalltalk 
statement ender.
So why not use perhaps  a  ! b ! c ! d  or a <- b <- c  or something 
like  that.

It would  be nice to have it as part of the standard library, but if 
not, then we
can still define it ourselves, as long as there are binary operators 
available.

Which brings up another interesting question: What should be valid binary
operators in the standard? 

-Panu Viljamaa


>
>> The Strength of Smalltalk has always been that you can
>> do so much with its STANDARD library, with a very simple syntax.
>
> Sure, but don't let this constrain you.  I think Array constructor 
> syntax is more compelling than Character literals, to name one thing.
>
> Paolo
>
> _______________________________________________
> ANSI-Smalltalk mailing list
> ANSI-Smalltalk at lists.openskills.org
> http://lists.openskills.org/cgi-bin/mailman/listinfo/ansi-smalltalk
>





More information about the ANSI-Smalltalk mailing list