4 ms·
Oh I didn’t know it was kind of a workaround. I do like the fact that loop is not a function though but an expression like if or case. FWIW I think in Clojure
by pgorczak 4y ago
Oh I didn’t know it was kind of a workaround. I do like the fact that loop is not a function though but an expression like if or case.
FWIW I think in Clojure you can use “recur” inside functions too to specifically indicate tail call recursion without relying on automatic optimization
- LandR 4y ago> without relying on automatic optimization I didn't think Clojure had any automatic optimization at all, due to the JVM not supporting it.
- fulafel 4y agoI think you mean automatic tail call optimization? (JVM has quite a lot of automatic optimizations that Clojure enjoys automatically, and clojure itself also has some automatic optimizations).