GUI wise,could use a closure for events + state. For example click a button which fires an event but also encapsulates state too, for example keeping track of how many times that button has been clicked, etc
Could also be used for filtering data and since the question is language agnostic take a loot at Jon Skeet's The Beauty of Closures
In reply to Re: Real life uses for closures.
by nikosv
in thread Real life uses for closures.
by BrowserUk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |