logoalt Hacker News

Jaxanyesterday at 3:54 PM1 replyview on HN

But if you program a for loop computing the sum from 1 to n, this also gets replaced by a constant (unless you build in debug mode). Why would an empty loop be different?


Replies

vlovich123yesterday at 4:21 PM

I think the argument is that the equivalent of an infinite loop would be a halt / abort instruction, not a complete removal of the loop and continue running anything else.

show 1 reply