A Lispy Forth for Smalltalk

Markus Gaelli gaelli at emergent.de
Mon Feb 16 07:28:46 UTC 2004


Hi,

Aaron J Reichow writes

> But instead of "x @foo: y", I just implemented a method- Collection>>#@
> (which broke the method of the same name to create an array of points)
> that allowed you to do it this way:
>
> x @ foo: y
>
> Not much different, just one space. And it didn't require any
> modifications to the parser, or overwriting DNU at the level of 
> Object. :)

and Andreas Raab means

> And if you're into that please consider not using cryptic symbols. It 
> seems
> much clearer to use a name, say "each" for this. Then you may write:
>
>> x @foo: y
>
>    each x add: y

Combining this two ideas gives:

x each add: y

which I would like a lot.

Aaron, could you rename @ to each (thus also removing compatibility 
issues with Collection > @}
and send your code?

Markus




More information about the Squeak-dev mailing list