in reply to Why are closures cool, continued?
Ok how about this: true or false (the author of the very first example in this thread and I were talking thru what constitutes this) ...
"A closure is different from an anonymous subroutine in that (instead of having private variables) it -saves- the variables passed into it in its scope!"
This seems like a reasonable enough and perfectly clear statement, but to be honest anytime I think something is reasonable and clear, that's when I'm about to start being REALLY wrong! :)
-mr.dunstan
"A closure is different from an anonymous subroutine in that (instead of having private variables) it -saves- the variables passed into it in its scope!"
This seems like a reasonable enough and perfectly clear statement, but to be honest anytime I think something is reasonable and clear, that's when I'm about to start being REALLY wrong! :)
-mr.dunstan
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Why are closures cool, continued?
by perrin (Chancellor) on Jan 19, 2002 at 06:36 UTC | |
by grinder (Bishop) on Jan 19, 2002 at 18:27 UTC |
In Section
Seekers of Perl Wisdom