So why do we like Functional Programming and closures? These are topics for another blog post each, but in short:
Functional programming is cool for at least two reasons:
1) There is a resurgence of interest in FP because it’s easier to adapt to concurrent programming on multiple processors and for asynchronous communication.
2) Its a style of coding that can be incredibly expressive with very few keystrokes.
Closures, also two reasons:
2) Same point as above. Its part of the powerful expression you can get with functional programming. You just have to get used to passing around functions instead of objects. Closures allow you to encapsulate data in those functions.
I would love to hear your thoughts on what I’ve written.