Hacker News new | past | comments | ask | show | jobs | submit login

> After a year or so of trial and error, we have pretty much stopped using reduce

I see Reduce (along with recursion itself) as the equivalent of a "low-level" construct in functional programming.

It is a great building block for other functions like sum/product, and even those demonstrated in the article, but not something that programmers should be using everyday.

I think it's very appropriate to have a rule to only use reduce (and recursion too!) inside "utility" libraries.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: