Using only immutable values and recursion can potentially lead to performance problems, including RAM use and speed.Īfter that I’ll look at the more-specific “drawbacks of functional programming in Scala”:.Pure functions and I/O don’t really mix.Because you can’t mutate existing data, you instead use a pattern that I call, “Update as you copy.”.For many people, recursion doesn’t feel natural.The advanced math terminology (monad, monoid, functor, etc.) makes FP intimidating.
0 Comments
Leave a Reply. |