News for hackers. Stuff that matters.
Re:Why Functional Programming Matters (1984) [pdf] by gengstrand on Thursday December 08, 2016 @10:51AM (#13131031)
It appears that your claim "Scala or Clojure that don't have real tail recursion because of the JVM" is in error.

http://stackoverflow.com/questions/1677419/does-scala-suppor...

http://clojure.org/reference/special_forms#recur

Re:Why Functional Programming Matters (1984) [pdf] by bad_user on Thursday December 08, 2016 @11:30AM (#13131447)
I specifically mentioned mutually tail recursive functions. Self-recursive functions, like what you're describing, are much less useful or interesting.

I say that as a Scala developer that loves Scala and the JVM - the lack of tail calls optimization at the JVM level is a pain in the ass, because in order to work around it you have to effectively build your own call stack.

Re:Why Functional Programming Matters (1984) [pdf] by tel on Thursday December 08, 2016 @11:17AM (#13131312)
It's not exactly an error. Neither language offers enough tail recursion to handle complex cases though they both offer simple support.
Re:Why Functional Programming Matters (1984) [pdf] by lmm on Thursday December 08, 2016 @12:25PM (#13132071)
As your own link makes clear, Scala does not have real tail recursion because of the JVM. It has a very limited form of tail recursion.