Re: [Pharo-project] [ENH] Syntax extension for continuations
Nov. 1, 2010
3:45 a.m.
On 1 November 2010 05:33, Levente Uzonyi <leves@elte.hu> wrote:
On Mon, 1 Nov 2010, Igor Stasenko wrote:
On 1 November 2010 05:04, Levente Uzonyi <leves@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.
5751
Age (days ago)
5751
Last active (days ago)
0 comments
1 participants
participants (1)
-
Igor Stasenko