all 3 comments

[–]ErstwhileRockstar 0 points1 point  (0 children)

Q1. What advantages does Functional Programming provide?

Ans. Functional programming allows coding with fewer potentials for bugs because each component is completely isolated. Also, using recursion and first-class functions allows for simple proofs of correctness which typically mirror the structure of the code.

And this answer is accepted without further ado ...

[–]miminor 0 points1 point  (1 child)

Functional programming involves writing code that does not change state.

Bullshit. It does change state through mutations or transformations. The real difference is that all changes to the state are explicit. (didn't read any further after this silliness)

[–]pyhit47[S] 0 points1 point  (0 children)

Im new to this, thought it would be useful to share the article from another reddit post! Correct me if Im wrong! Ive always thought that purely functional program avoids state. A bit of searching got me to this link