3 ms·
I don’t know why “repeat” isn’t very common in place of while/loop/etc; it works out nicely grammatically. repeat {} repeat while <condition> {} re
by wwalexander 2y ago
I don’t know why “repeat” isn’t very common in place of while/loop/etc; it works out nicely grammatically.
repeat {}
repeat while <condition> {}
repeat {} while <condition>
repeat <count> {}
- af78 2y agoOne possible reason: > The word "REPEAT" should not be used in place of "SAY AGAIN", especially in the vicinity of naval or other firing ranges, as "REPEAT" is an artillery proword defined in ACP 125 U.S. Supp-2(A) with the wholly different meaning of "request for the same volume of fire to be fired again with or without corrections or changes" (e.g., at the same coordinates as the previous round). https://en.wikipedia.org/wiki/Procedure_word#Say_again https://en.wikipedia.org/wiki/Procedure_word#Say_again More seriously, PASCAL has repeat-until loops, similar to do-while loops in C.
- aartaka 2y agoPretty C does aliases "repeat" for "do", so yeah, I've got you covered!