A Lispy Forth for Smalltalk

ducasse ducasse at iam.unibe.ch
Mon Feb 16 08:38:51 UTC 2004


On 16 févr. 04, at 05:44, Aaron J Reichow wrote:

> After playing with F-Script myself a while back, I implemented 
> something
> similar in Squeak.
>
>>> x @foo: y
>>>
>>> to be syntactic sugar for
>>>
>>> x collect: [:ea | ea foo: y]
>
> 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. :)

Sure you can do that but philippe was looking at having something 
optimized.
read the oopsla paper and you will understand. the fact that you 
generate a lot of
collection of boolean or only number can make that really efficient.

Stef




More information about the Squeak-dev mailing list