I'm not sure about how they work in AS or JS, but Groovy's closures are
ridiculously powerful, so it may be worth looking at that.

On Fri, Sep 5, 2008 at 12:11 PM, Barney Boisvert <[EMAIL PROTECTED]>wrote:

>
> Java supports neither closures or callbacks.  CF supports callbacks,
> but not closures.  JavaScript supports closures (and therefore
> callbacks).  Groovy, Ruby, ActionScript all support closures as well.
> Python supports quasi-closures via 'lambda', but that doesn't count
> for your question.
>
> So pick a closure-supporting language that you're familiar with, and
> go read some docs.  They'll all have examples, just as anyone's email
> reply would.  Since you're a web guy, JavaScript is probably the best
> bet.
>
> cheers,
> barneyb
>
> On Fri, Sep 5, 2008 at 8:58 AM, Bryan Hogan <[EMAIL PROTECTED]> wrote:
> > Hi All,
> >
> >
> >
> > I would like to better understand closures and callbacks.  If you have
> > experience with this please provide a summary of what each is good for
> and a
> > code sample in either CFML or Java.
> >
> >
> >
> > If I can see it done in a language I am familiar with it is easier for me
> to
> > pick up rather than reading about it.
> >
> >
> >
> > Thanks in advance.
> >
> > Bryan F. Hogan
> > Product Manager
> > eDonor(R) - Recruit, Retain, Repeat
> > A Global Med Technologies(R) Company
> >
> > P  602.489.7844
> > F  602.489.7801
> > www.edonor.com
> >
> > The information contained in this electronic mail message, including all
> > attachments hereto, is confidential information intended only for
> > distribution to the individual(s) named above. If the reader of this
> message
> > is not the intended recipient, you are hereby notified that any
> > dissemination, distribution, use or copying of this  communication, and
> the
> > information contained herein, is strictly prohibited. If you have
> received
> > this communication in error, please immediately notify us by telephone at
> > (602) 489-7800 and delete the original message. Thank you.
> >
> > >
> >
>
>
>
> --
> Barney Boisvert
> [EMAIL PROTECTED]
> http://www.barneyb.com/
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to