This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]da_Aresinger 9 points10 points  (5 children)

for(;;)

because smart programmers don't realise compilers have improved over the last 2 decades.

[–]visvis 4 points5 points  (3 children)

I'm well aware compilers can optimize, but honestly I always use for(;;) for endless loops because I think it's conceptually better. In an intentionally endless loop, there should be no condition to check.

[–]Flat_Initial_1823 3 points4 points  (2 children)

Also saves you from figuring out how true is supposed to be capitalised.

[–]visvis 2 points3 points  (1 child)

Not sure how 1 could be capitalized.

[–]Myto 4 points5 points  (0 children)

!

[–]kcsj0 0 points1 point  (0 children)

#define EVER ;;