No such thing as a small change | |
PerlMonks |
Re: Real life uses for closures.by nikosv (Deacon) |
on Feb 12, 2013 at 18:13 UTC ( [id://1018423]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|