fasterthanlime / shin

:warning: (def shin (dissoc clojurescript :jvm :google_closure)) (deprecated)
MIT License
35 stars 1 forks source link

Allow named functions #27

Closed fasterthanlime closed 9 years ago

fasterthanlime commented 9 years ago

Since #26 has to be fixed, the only way to write a recursive function is to name it:

(let [inner (fn rec [x])
        (if (< x 10)
          (rec (inc x))
          x)]
  (print (inner 0)))

And that code is correct.