[squeak-dev] Clamato

Bert Freudenberg bert at freudenbergs.de
Mon Sep 7 22:24:35 UTC 2009


On 04.09.2009, at 20:53, Dan Ingalls wrote:

> Hi, Avi
>> I tried to leave out the cascade syntax, but found it was too useful
>> and had to put it back.
>
> I love it!  I've always felt a bit sheepish about cascades, but I  
> put them in because it was a pattern that we found useful in St72  
> and I wanted to preserve as much as possible of that convenience.

Me too! And how well the ";" works with "." to separate statement is  
amazing. Others are imitating the cascade style by "chaining" but it  
looks weird and is limited at the same time; see e.g. this message I  
just got on a Python list:

Begin forwarded message:

> it would be awesome to set up chaining so we could do something like
>
> layer['timer'].save().clear().
>        fillStyle('#fff').
>        fillRect(10, startTimerY, endTimerX, offsetTimerY).
>        restore();

- Bert -





More information about the Squeak-dev mailing list