Programming-Idioms

History of Idiom 50 > diff from v14 to v15

Edit summary for version 15 :

Version 14

2015-08-21, 09:11:14

Version 15

2015-09-03, 15:34:39

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
loop do
  # endless joy
end
Doc URL
http://ruby-doc.org/core-2.2.3/Kernel.html#method-i-loop