3 ms·
Using redo for tail recursion in Ruby is an interesting idea, similar to Clojure's recur keyword.
by jimbokun 18y ago
Using redo for tail recursion in Ruby is an interesting idea, similar to Clojure's recur keyword.
- sunkencity 18y agobut ruby doesn't support tail recursion effectively? or is this something new in 1.9. Stack level is not deep enough in 1.8 :P
- judofyr 18y ago1.9 supports it, together with some other optimizations, but everything is turned off in 1.9.1. 1.9.2 will be sweet :-)