Sake = Rake for Smalltalk?
nicolas cellier
ncellier at ifrance.com
Tue May 16 19:45:00 UTC 2006
Le Mardi 16 Mai 2006 21:35, stéphane ducasse a écrit :
> > The current syntax ("anonymous" blocks) could still be allowed as
> > syntactic shortcut:
> > aBlock := [ :x :y | self blah ].
> > being synonymous for:
> > aBlock := [ value:x value:y | self blah ].
>
> Quite neat! even if I dislike the |
Nice to make things explicit.
But a clever mind might think of writing
aBlock := [x: xInteger y: yInteger xInteger blah: yInteger ].
and believe he/she can evaluate with:
aBlock x: 1 y: 0.
Nicolas
More information about the Squeak-dev
mailing list
|