Y
Hacker News
new
|
ask
|
show
|
jobs
by
Dylan16807
2027 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
volta87
2027 days ago
If by "nothing" you mean "nothing but looping", then yes, you are right. Any loop that "just loops" is doing something by definition: looping.
link
Dylan16807
2026 days ago
It depends on your perspective. Normally when I talk about what a loop "does", I am talking purely about the contents of the loop.
link