2 ms·
IANA clojurian, but its inelegance of tail recursion is a limitation of java, correct?
by nmg 8y ago
IANA clojurian, but its inelegance of tail recursion is a limitation of java, correct?
- Royalaid 8y agoYeah, because the JVM can't do TCO you can't have nice recursion. The options in the language provides are good enough but definitely not the most ergonomic.
- socksy 8y agoI can't remember the last time I wrote a recursive call in Clojure, other than for multi-arity. In general, if I were in a code review and saw the "recur" keyword, I think I would regard it as a code smell and see if I can re-implement it using higher order functions.