Good points, I agree with you about the use cases!
Just your definition of closures seems to be reduced to just generating anonymous functions.
That's not the point, the main characteristic of closures is accessing variables from the outer scope at definition/generation time, most efficiently even shared between multiple closure-functions.
So a real-world example should include shared private variables.
Cheers Rolf
In reply to Re^2: Real life uses for closures.
by LanX
in thread Real life uses for closures.
by BrowserUk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |