4 ms·
General observation about until. I think it works better "linguistically" as a REPEAT/UNTIL (ala BASIC) and not as a negative while loop. So block of code alw
by draegtun 16y ago
General observation about until. I think it works better "linguistically" as a REPEAT/UNTIL (ala BASIC) and not as a negative while loop.
So block of code always gets run at least once. For eg. in Perl:
my $x;
do {
print "guess the number? ";
$x = readline;
} until $x == 10;
Disclaimer: Can't recall using until since I last played with BASIC. And that was many years ago :)