Conditional statements check if the condition is true.
'until nil' is a conditional statement, and is the same as saying 'until nil==true'
Since nil can never equal true (as nil is nonexistent), the loop will continue infinitely.
The same applies to repeat until false
Make sure you yield in your non-terminating loop, else it will crash. |