[Pharo-project] [squeak-dev] Re: [ENH] Syntax extension for continuations

Igor Stasenko siguctua at gmail.com
Mon Nov 1 03:45:12 UTC 2010


On 1 November 2010 05:33, Levente Uzonyi <leves at elte.hu> wrote:
> On Mon, 1 Nov 2010, Igor Stasenko wrote:
>
>> On 1 November 2010 05:04, Levente Uzonyi <leves at elte.hu> wrote:
>
> snip
>
>>> foo ; bar ;; baz ; foo ;; bar ; baz.
>>>
>> this is incorrect syntax.
>
> This is correct: ((self foo; bar) baz; foo) bar; baz.
> Message chaining should be equivalent with this, shouldn't it?
>

yes, but continuation err.. chaining ';;' takes precedence before cascade ';'

which means that you can write only as:

self foo zork ;; bar ;; bum ; baz ; lz

but not

self foo zork ; bar ;; bum ; baz ;; lz

otherwise you will also need to use parens to disambiguate nested cascades.

>
> Levente
>



-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list