Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Using redo for tail recursion in Ruby is an interesting idea, similar to Clojure's recur keyword.


but 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


1.9 supports it, together with some other optimizations, but everything is turned off in 1.9.1. 1.9.2 will be sweet :-)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: