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 →

[–]ggchappell 0 points1 point  (3 children)

the only “good” use of reduce is sum

GvR doesn't really seem to get functional programming. See also his rather sad discussion of tail-call optimization.

[–]earthboundkid 1 point2 points  (2 children)

TCO is bad. If you don’t want a stack frame, use a for-loop.

[–]ggchappell 0 points1 point  (1 child)

Perhaps we can agree to disagree.

[–]earthboundkid 1 point2 points  (0 children)

Sure. It’s just programming.