Logo

Programming-Idioms

History of Idiom 50 > diff from v31 to v32

Edit summary for version 32 by :
New Cpp implementation by user [GhassanPL]

Version 31

2016-02-16, 18:02:49

Version 32

2016-02-16, 18:03:43

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