|
|
|
|
|
by nepeckman
1866 days ago
|
|
Whatever exists inside the map lambda would have to exist inside the for loop as well. So if you're dealing with a confusing transformation, a loop doesnt offer you any extra tools for making that transformation more apparent to the reader. Loops have plenty of advantages (computer execution is more obvious, stack traces can be cleaner, easier concept for beginners to grasp), but I have never seen a loop be more readable than a well written functional composition. |
|
It is chaining that obfuscates in this case. Through, I really don't find functional style more readable in general.