Re:Why Functional Programming Should Be the Future of Software
by tankorsmash on Thursday November 03, 2022 @10:12AM
(#33451287)
> It's not "if you're used to procedural programming" - FP is simply hard for people to reason about.
It's relatively straightforward once you understand the patterns and idioms, just like procedural programming. `age |> add10 |> substract9` is about as readable as `add10(substract9(age)`, but we're just so used to the latter.
It's relatively straightforward once you understand the patterns and idioms, just like procedural programming. `age |> add10 |> substract9` is about as readable as `add10(substract9(age)`, but we're just so used to the latter.