in reply to Re: Real life uses for closures. (update: disambiguation)
in thread Real life uses for closures.
What are "delegates"? Talking about C#?
I don't know C#. My use of the term delegates comes from The D programming language and is best described as a pointer to a method.
That is, it is a pointer to a function that carries an implicit reference to an object instance. Ie. Equivalent to this in perl:
use Some::Class; my $inst = new Some::Class(); my $delegate = sub{ Some::Class::methodName( $inst, @_ ); };
Closures are NOT synonymous for: ... nor for currying
Agreed. But currying is one use for closures not easily achieved without them.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Real life uses for closures. (update: disambiguation)
by ikegami (Patriarch) on Feb 14, 2013 at 08:16 UTC | |
Re^3: Real life uses for closures. (update: disambiguation)
by LanX (Saint) on Feb 13, 2013 at 17:10 UTC | |
by BrowserUk (Patriarch) on Feb 13, 2013 at 18:35 UTC | |
by davido (Cardinal) on Feb 14, 2013 at 08:27 UTC | |
by BrowserUk (Patriarch) on Feb 14, 2013 at 17:38 UTC | |
by davido (Cardinal) on Feb 14, 2013 at 17:58 UTC | |
| |
by LanX (Saint) on Feb 13, 2013 at 23:25 UTC | |
by BrowserUk (Patriarch) on Feb 14, 2013 at 00:04 UTC |
In Section
Seekers of Perl Wisdom