A Lispy Forth for Smalltalk
Marcel Weiher
marcel at metaobject.com
Mon Feb 16 16:16:49 UTC 2004
On 16 Feb 2004, at 07:28, Markus Gaelli wrote:
> 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
This looks vaguely familiar...
> Combining this two ideas gives:
>
> x each add: y
>
> which I would like a lot.
Glad you like it, that is exactly the HOM "syntax" :-)
Cheers,
Marcel
--
Marcel Weiher Metaobject Software Technologies
marcel at metaobject.com www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
1d480c25f397c4786386135f8e8938e4
More information about the Squeak-dev
mailing list
|