3 ms·
What is wrong with simply: test := True; WHILE test DO <body>; test = <condition> OD
by Wildgoose 5y ago
What is wrong with simply:
test := True;
WHILE test
DO
<body>;
test = <condition>
OD
- chalst 5y agoThat introduces a variable that has to be initialised outside the control block. It's not terrible as hacks go, but I guess the readability cost of the additional variable is higher than having the body in the condition.
- tangus 5y agoNothing is wrong with it, but your suggestion comes 40 years too late. The popular idiom was the one I mentioned.