Hank Gong <hankgong / gmail.com> writes: > Because I read some other lauguage said that recursive programming can > totally replace loop structure. > So I want to think the loop as the recursive way! Unfortunately, Ruby doesn't have tail-call optimization, so recursive methods always are likely to overflow the stack. -- Christian Neukirchen <chneukirchen / gmail.com> http://chneukirchen.org