3 ms·
I don't actually have all that much of a problem with chaining fp-style functions, but I note that I see a fair bit of anonymous functions and excessive chainin
by madeofpalk 1y ago
I don't actually have all that much of a problem with chaining fp-style functions, but I note that I see a fair bit of anonymous functions and excessive chaining where none of the benefits you point out are realised.
My actual problem is with bad reduce functions that try to shoehorn multiple things into one function and often break the core concept of functional programming by mutating the input arguments. It's that code that would just be better written as a normal loop.
- whilenot-dev 1y ago> It's that code that would just be better written as a normal loop. Have to disagree with your conclusion here. It's that code that should be rewritten, so it doesn't mutate the input arguments at all.