Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I disagree entirely. In most imperative programming languages, you can shove any sort of logic inside a loop, more loops, more branches, creating new objects, its all fair game.

Fold and map in functional languages are often much more restrictive in a sense. For example, with lists, you reduce down a collection [a]->a to a single object, or produce another collection with a map [a]->[a]. So map and fold etc are much more restrictive. That's what makes it clearer.



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

Search: