3 ms·
I like functional programming and have been doing it off and on for years. Mainly with Ocaml. But I have never really understood the desire to move to pure fu
by ilaksh 6y ago
I like functional programming and have been doing it off and on for years. Mainly with Ocaml.
But I have never really understood the desire to move to pure functional programming for the following reason:
I always end up with a group of functions that are repeatedly passing around the same variables. It might only be two or three or four variables, but quite often it seems that I can make the code less noisy by assuming that the state is attached to the instance already and so it doesn't constantly need to get passed around.
And I know someone is going to say I am just not factoring things properly, but after a number of years of repeating that experience, I don't buy that anymore.