logoalt Hacker News

phplovesongtoday at 8:40 AM1 replyview on HN

TCO can be implemented easily in non TC optimized langauges with a trampoline wrapper.

Why do i need a fully fledged library for something that is basically a few lines of code?


Replies

sreantoday at 9:05 AM

There's quite a bit of overhead.

I believe Clojure does it with trampoline as JVM does not (as far as I know) does not support tail call optimization. Ironic, given Guy Steele.

show 1 reply