in reply to Re^3: IO::Lambda: call for participation
in thread IO::Lambda: call for participation
Both predicate1 and predicate2 use values $a, $b, $c from the context, even though predicate2 is called after code that called predicate1 is finished. That code is identical to the following:context $a, $b, $c; predicate1 { predicate2 { }}
context $a, $b, $c; predicate1 { context $a, $b, $c; predicate2 { }}
From the architectural point of view, context is syntactic sugar. The same effects can be achieved without using it, but at the price of more complex and/or ugly code.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: IO::Lambda: call for participation
by zby (Vicar) on Jan 05, 2009 at 20:30 UTC | |
by dk (Chaplain) on Jan 05, 2009 at 21:05 UTC | |
by zby (Vicar) on Jan 05, 2009 at 22:12 UTC | |
by dk (Chaplain) on Jan 06, 2009 at 07:41 UTC | |
by xdg (Monsignor) on Jan 06, 2009 at 13:55 UTC | |
|