[ABE.pm] non-trivial closure examples?

Ricardo SIGNES perl.abe at rjbs.manxome.org
Fri Aug 8 12:52:03 PDT 2008


* "Faber J. Fedor" <faber at linuxnj.com> [2008-08-08T13:57:52]
> I've got the canonical example of a closure, now I'm looking for

Make sure you explain closures first.  Java doesn't have them.

> Memoize would not be a good example since I would have to explain
> everything Memoize is trying to accomplish..

Memoize is a pretty good example.  All you have to explain is how it makes
fibbonacci faster.

-- 
rjbs


More information about the ABE-pm mailing list