2 ms·
You're mutating result every step along the way and passing it into the functions as well, such that if it's an object or an array it could be mutated in non-tr
by chrisco255 5y ago
You're mutating result every step along the way and passing it into the functions as well, such that if it's an object or an array it could be mutated in non-transparent ways. The main benefit is to encourage a more functional, immutable data flow.
- thomas_moon 5y agoI get your point but I guess I fail to see how more obscure syntax at the time of composition helps someone understand something should be immutable. If I'm mutating inputs in a functional programming code base, syntax probably isn't the problem. edit: wasn't to isn't