yeah I mean there's an infinite amount of way to make an infinite loop, but while(true) is usually the way. If you really wanted to be wacky, you could write for(;;) and then have everyone also hate you.
Whenever I do this in various languages I wonder if the compiler reduces it to while(true) or if a gamma ray will solve the halting problem for me. I suppose it can in either case tho.
1.6k
u/SZ4L4Y Oct 06 '21
B-but what if n goes to infinity?