Damian Conway <[EMAIL PROTECTED]> writes: > > As I understand things: > > > > BLOCK1 andthen BLOCK2 > > > > evaluates BLOCK1 and then if BLOCK1 evaluates to "true" evaluates > > BLOCK2. If BLOCK2 evaluates to "true" we're done. If BLOCK2 > > evaluates to "false", then BLOCK1 is re-evaluated. > > So how is that different from: > > do BLOCK1 until do BLOCK2 It's the same. But the real fun starts when blocks and functions can suspend and resume. { ... # Return value and suspend. suspend $i; # Next iteration will resume here ... } andthen { ... }; -- Johan
- RFC 104 (v1) Backtracking Perl6 RFC Librarian
- Re: RFC 104 (v1) Backtracking John Porter
- Re: RFC 104 (v1) Backtracking Jeremy Howard
- Re: RFC 104 (v1) Backtracking Jonathan Scott Duff
- Re: RFC 104 (v1) Backtracking Damian Conway
- Re: RFC 104 (v1) Backtracking Jonathan Scott Duff
- Re: RFC 104 (v1) Backtracking raptor
- Re: RFC 104 (v1) Backtrackin... Jeremy Howard
- Re: RFC 104 (v1) Backtra... Jonathan Scott Duff
- Re: RFC 104 (v1) Backtra... raptor
- Re: RFC 104 (v1) Backtracking Johan Vromans
- Re: RFC 104 (v1) Backtracking Jeremy Howard
- Re: RFC 104 (v1) Backtracking John Porter
- Re: RFC 104 (v1) Backtracking raptor
- Re: RFC 104 (v1) Backtracking John Porter
- Re: RFC 104 (v1) Backtracking Nathan Torkington
- Component wise || and RFC 82 (was Re:... Jeremy Howard
- Re: Component wise || and RFC 82... Nathan Torkington
- Re: Component wise || and RF... Damien Neil
- Re: RFC 104 (v1) Backtracking Mark Cogan