4 ms·
Someone made a similar comment on my code recently, is that a generational thing? for (;;) has always been the idiomatic way to do an infinite loop.
by mgaunard 4y ago
Someone made a similar comment on my code recently, is that a generational thing?
for (;;) has always been the idiomatic way to do an infinite loop.
- throwaway_2382 4y agoI started programming in C circa 1997, following a brother who started a few years earlier, and always used while(1). FWIW https://github.com/robohack/ucb-csrg-bsd https://github.com/robohack/ucb-csrg-bsd contains both variants.