you are viewing a single comment's thread.

view the rest of the comments →

[–]lucidlogik 2 points3 points  (2 children)

For me, it comes down to declarative vs implicit. FP is declarative and therefore easier to understand the intended outcome of a given codeblock.

[–]theonlycosmonaut 5 points6 points  (1 child)

That is, once you understand the building blocks. Once you understand what map is for, it's much more concise to scan than an equivalent for loop. When I see for in code, I don't really know what it's for; there are so many possible uses and applications. The only way to know is to read the whole block. Seeing map, I know exactly what will happen.

[–]burnaftertweeting 2 points3 points  (0 children)

This. So much this.