Hacker News new | past | comments | ask | show | jobs | submit login

I wondered why tail call optimization isn’t on by default. Found this in an article linked from the submission:

> There was some talk of enabling tail call optimization by default around the time that Ruby 2.0 was released, however this hasn't come to be for a number of reasons: Primary concerns were that tail call optimization makes it difficult to implement set_trace_func and also causes backtrace weirdness due to the absence of a new stack frame.

http://blog.tdg5.com/tail-call-optimization-in-ruby-backgrou...




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

Search: