
July 16, 2009
1:57 p.m.
or maybe better:
while foo(x) and bar(): where: foo = SOMETHING def bar(): SOMETHING ELSE THE LOOP BODY
Another possible variant: while foo(x) and bar() # no colon where: foo = SOMETHING def bar(): SOMETHING ELSE do: THE LOOP BODY But the former has such an advantage that where-block content is indented deeper than loop body -- what reflects that it (where-block) creates nested scope (contrary to loop body). -- Jan Kaliszewski <zuo@chopin.edu.pl>