r/functionalprogramming • u/beezeee • Jan 06 '24
FP Favor Composition (towards point free)
https://whyfunctionalprogramming.com/basics/favor-composition/
4
Upvotes
r/functionalprogramming • u/beezeee • Jan 06 '24
3
u/unduly-noted Jan 07 '24
Hey interesting perspective! I hadn’t thought of the imperative approach as taking things apart to put them back together. I love a good real-life analogy for software.
I liked the conciseness of the article (I hate long, drawn out stuff… my attention span is crap these days lol) however I think you you could make the point really strong by finishing with a more complex example. The one you have is illustrative but probably not that convincing for someone new to FP. Using the simple example to get the concept across then showing it applied in a more complex context would be more persuasive imo.
3
u/effinsky Jan 07 '24
I'd appreciate this in a proper FP language.
0
u/[deleted] Jan 06 '24
[deleted] — view deleted comment