in reply to Re: Re: while 's 'continue' block
in thread while 's 'continue' block

quoth the 1st Camel, on pg. 96, and the 2nd Camel, on pg. 99: <it>
for ($I = 1; $i < 10; $i++) { ... }
is the same as
$i = 1; while( $i < 10) { ... } continue { $i++; }
Personally, I like the symmetry it gives the language.
(if only it had an elswhile clause to complete the symmetry...)

Replies are listed 'Best First'.
Re: Re: Re: Re: while 's 'continue' block
by coreolyn (Parson) on Jan 05, 2001 at 05:53 UTC

    An elsewhile would add symmetry but wouldn't a meanwhile be more fun?:)

    Thanks for the follow-up,

    coreolyn