It seems to me that currying is to functional programming what encapsulation/information hiding is to OOP. It gives you a way to really reduce rather large and unwieldy functions to a reusable prototype.
Something else that also struck me as rather powerful was how Haskell (almost effortlessly) composes generic functions, giving ways for them to work together with a variety of types in situations that would seem rather odd or unruly in an OOP sense. The book examples are a bit contrived... how often are you going to need to count the number of words starting with a capital letter? But the idea that these functions are actually composed of list operator functions + an isUpper check is very nifty, and not at all how you'd do it in an imperative world.
A note about the book specifically... this chapter had almost too much information. They cover a broad arc of functional techniques in machine gun fashion. I'm sure it's more to get exposure so you can start thinking in those techniques, but trying to read the chapter in one sitting is nearly impossible.
Recent comments
10 sec ago
2 hours 55 min ago
2 hours 55 min ago
13 hours 9 min ago
14 hours 37 min ago
14 hours 37 min ago
14 hours 37 min ago
21 hours 54 min ago
2 weeks 3 days ago
4 weeks 4 days ago