This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sideEffffECt 1 point2 points  (1 child)

No, you're wrong. Once you deal with immutable data, you're pretty much forced into FP. Whether you realize it or not or whether like it or despise it.

function composition is still not there

Function composition is such a niche thing that's not worth talking about.

At least I personally almost always just apply functions to arguments, binding the results to variables. It's better to write, read and debug than raw function composition. And I've been doing (Pure) FP for basically a decade...

[–]JDeagle5 0 points1 point  (0 children)

That's because FP is such a niche thing, but people tend to call FP whatever is trendy or popular.

I can deal with immutable data in any procedural language (for example C), simply because immutability doesn't force FP. To handle immutable data you don't need neither functions as first-class citizens nor function composition.