Sometimes when I am programming, I find that some particular control structure would be very useful to me, but is not directly available in my programming language. I think my
{ foo(); } split_while( condition ) { bar(); }
You can accomplish that pretty easily using a regular while:
while
while (true) { foo(); if (!condition) break; bar(); }
I do that pretty frequently now that I got over my irrational distaste for break.
break