logoalt Hacker News

echoangleyesterday at 3:58 PM1 replyview on HN

Why not just allow infinite loops instead of having me write assembly for it though?


Replies

account42yesterday at 4:07 PM

Because a compiler being allowed to assume that a loop always terminates gives it more room to optimize the 99% of loops that aren't supposed to run until the heat death of the universe.

show 1 reply