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