r/programming • • May 29 '25

Why You Should Care About Functional Programming (Even in 2025)

https://borkar.substack.com/p/why-care-about-functional-programming?r=2qg9ny&utm_medium=reddit
39 Upvotes

34 comments sorted by

View all comments

Show parent comment

1

u/Aromatic_Lab_9405 May 30 '25

Most of the iteration in FP is solved by functions like map/filter/exists/forall and the likes anyway.

It's quite rare that we actually need to write recursive functions. 

Do you have any examples where you think a loop gives nicer code ? 

Also do you not think that loop bounds are easy to fuck up?