Hacker News new | ask | show | jobs
by Dylan16807 1980 days ago
Loops that do nothing and don't terminate.

If your loop infinitely writes the number 70 to an atomic int, it's fine.

1 comments

If by "nothing" you mean "nothing but looping", then yes, you are right. Any loop that "just loops" is doing something by definition: looping.
It depends on your perspective. Normally when I talk about what a loop "does", I am talking purely about the contents of the loop.