3 ms·
Thanks. An interesting story. About your last paragraph: What's so special about closures? They have been in lambda-calculus for ages. And lambda-calculus j
by eru 17y ago
Thanks. An interesting story.
About your last paragraph: What's so special about closures? They have been in lambda-calculus for ages. And lambda-calculus just formalizes mathematicial function application and abstraction. (OK, I guess most mathematicians are not aware of lexical scoping. But it springs naturally from alpha equivalence, a notion that every mathematician agrees with intuitively.)
Of course coming up with the mathematical ideas and notations in the first place wasn't easy. But closures pre-date computers. The computer scientists `just' had to find ways to implement them effectively.
- deleted 17y ago[deleted]
- btilly 17y agoMy answer is that what's special about closures is that if you actually structure your program around using them, then you reorganize how you design things in a somewhat surprising way.
- eru 17y agoI agree. It's similar with Monads, Arrows, Functors. They have been around far ages in category theory, but only recently have some of us begun to structure our programs around them.