r/functionalprogramming • u/aurreco • Oct 27 '21
Question What are the downsides to functional programming?
Hello,
Recently I’ve gotten pretty used to programming functionally from my CS class at school. Decoupling state from functionality is really appealing to me, and the treating a program like one big function is great too.
So my question is this: is there any reason why this way of programming isn’t the industry standard? What are the benefits of iteration over recursion? Why are mutable variables valued? Basically, why is it so niche when it feels like it should be a mainstream programming philosophy?
48
Upvotes
View all comments
Show parent comment
6
u/[deleted] Oct 27 '21
I don't really follow. I think of myself as a functional programmer, but my development is very bottom-up and iterative. Also, Clojure, which most people would think of as a functional-programming language, is designed to be used with a REPL, which leads to bottom-up/iterative development.