Logo

Programming-Idioms

History of Idiom 50 > diff from v33 to v34

Edit summary for version 34 by :
[Cpp] Conformed to the C example formatting

Version 33

2016-02-16, 18:04:29

Version 34

2016-02-16, 18:05:10

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 (;;) {}
Code
for (;;) {
	/// Do something
}
Comments bubble
You may remove the curly braces if the block is only 1 instruction.
Comments bubble
You may remove the curly braces if the block is only 1 instruction.