Hacker News new | ask | show | jobs
by rachbowyer 3931 days ago
Spot on! The code fails as the author has used nil? rather than empty? The recursive call is not from the tail position so tail call optimisation is not possible in any language.
1 comments

> tail call optimisation is not possible in any language.

Afaik it is possible in racket. Read the note at the end here: http://matt.might.net/articles/lexers-in-racket/