Re:Advantages of Functional Programming in Java 8
by bad_user on Tuesday September 06, 2016 @12:38PM
(#12437255)
The problem with working with closures is that stack-traces tend to become very hard to read, close to unusable sometime. Add asynchrony/concurrency to the mix and you've got a wonderful cocktail :-)
Partial blame is on Sun/Oracle for not adding mutual tail-recursive calls optimizations to the JVM ;-)
This is one of the challenges of FP. It makes debugging harder. But then FP code tends to be tested by means of laws described with QuickCheck, a superb automated testing tool that has ports to Scala, Ocaml, Clojure (that I know of) and it raises the quality of the code a lot.
Partial blame is on Sun/Oracle for not adding mutual tail-recursive calls optimizations to the JVM ;-)
This is one of the challenges of FP. It makes debugging harder. But then FP code tends to be tested by means of laws described with QuickCheck, a superb automated testing tool that has ports to Scala, Ocaml, Clojure (that I know of) and it raises the quality of the code a lot.