+ 1
So I have been researching functional programming recently and wanted to know everyone's thoughts on this topic.
Functional programming. what would be some pros/cons of this?
1 Réponse
0
If you have been researching then you may know more than me.
In functional programming the output is more predictable (for any function, and therefore the program) because there is no state.
ie the same function with the same input should always give the same output. This can make debugging easier.
However the constraint of statelessness can make certain types of problems harder to solve. (May also lead to messier code).
To be fair other programming paradigms are less suited to specific problems also, just different ones.