loge.hixie.ch

Hixie's Natural Log

2014-03-31 04:59 UTC Looping constructs

Sheesh, I really miss a looping construct where the condition is in the middle. Something equivalent to:

repeat
   ...
   if (condition) then break;
   ...
until false;

...but without the ugly until false, and ideally with continue jumping to the block after the condition rather than back to the top.