+1
I also like continuation
BR
John
Hi Eric,On 05.10.2012 20:45, Eric Kolotyluk wrote:
I am fine with either 'continuation' or 'continueWith' but would favor what ever is more accurate semantically, and I am not hung up on the function name being a verb.
that's right, that's more important. Btw. you sent it to me only...
Regards,
Jan
Cheers, Eric
Summary so far:
5 +1's
2 did not vote
Am I mistaken? I thought that shift { } captures the line of code that contains 'shift' and the rest of the code to the end of the reset { } block, not from the beginning of the reset { } block. In particular
reset {
. . .
val foo = shift {
. . .
}
. . .
val bar = shift {
. . .
}
. . .
}
the second shift { } is not going to capture the first shift { }. At least that is the way I thought it worked.
I do admit that in
delimit {
. . .
/*start of capture*/ val foo = capture {
. . .
}
. . . /* end of capture */
}
it is not immediately obvious that 'val foo =' until the end of the delimit is what is being captured, but I cannot think of any clearer way to express that, except by adding the comments.
Cheers, Eric
The thing passed into the shift/capture block is a function, so really should be named as a verb.