Logo

Programming-Idioms

History of Idiom 50 > diff from v8 to v9

Edit summary for version 9 by :

Version 8

2015-08-20, 11:19:25

Version 9

2015-08-20, 11:19:31

Idiom #50 Make an infinite loop

Write a loop which has no end clause.

Idiom #50 Make an infinite loop

Write a loop which has no end clause.

Code
for(;;){
	// Do something
}
Code
for(;;){
	// Do something
}
Comments bubble
You may remove the curly braces if the blocks is only 1 instruction.
Comments bubble
You may remove the curly braces if the block is only 1 instruction.