[Pharo-project] [ENH] Syntax extension for continuations
siguctua at gmail.com
Sun Oct 31 23:45:35 EDT 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:
>>> 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
self foo zork ; bar ;; bum ; baz ;; lz
otherwise you will also need to use parens to disambiguate nested cascades.
Igor Stasenko AKA sig.
More information about the Pharo-dev