in reply to do {$i++} until vs. $i++ until

It's consistent and orthogonal with the same construct in C. Think of it more of a syntactic construct along the lines of while( EXPR ) BLOCK continue BLOCK rather than an EXPR until EXPR where the first EXPR is a do BLOCK.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: do {$i++} until vs. $i++ until
by jethro (Monsignor) on Mar 26, 2008 at 00:33 UTC
    Note that I did not criticize the first-execute-then-check do{} until but the first-check-then-execute of $i++ until. THAT is the code that feels wrong. That is the construct that puzzles me. Anyone know a language where this is handled the same?

    But I could live with the "wrong" construction if both cases were at least consistent with each other.