HN2new | past | comments | ask | show | jobs | submitlogin

You could just say while(true). And I'm not sure that the test for true is implicit, since that is what while() explicitly does.


C doesn't have true / false as language constants, only as override-able macros.

The good thing is modern compilers can evaluate a loop and if the break condition is constant it can just do an infinite loop without checking.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: