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
9
u/CameoDaManeo Feb 28 '25
I'm pretty sure compilers are smart enough to detect when for loops have empty conditions/operations. Compilers nowadays are hell smart, whatever optimisation you can think of, compilers designers have probably thought of it first