Comment on One Major Difference Between Clojure and Common LispparentComments−rachbowyer11ySpot 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.−PuercoPop10ytail 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/
Comments
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.
Afaik it is possible in racket. Read the note at the end here: http://matt.might.net/articles/lexers-in-racket/