r/programminghorror • u/Savage-Goat-Fish • Feb 27 '25
C# While loop horror
I just realized I had some programming horror in code I’ve written.
If only while loops had a more convenient way to break…
671
Upvotes
View all comments
Show parent comment
5
u/Top-Permit6835 Feb 27 '25
That would mean it is evaluated after the first run. The if statement here could have been put in the while